# TypeError: Discourse.Dialect.postProcessText is not a function

**URL:** <https://meta.discourse.org/t/typeerror-discourse-dialect-postprocesstext-is-not-a-function/49963>\
**Category:** Development\
**Created:** [10. September 2016 um 10:35 UTC](https://meta.discourse.org/t/typeerror-discourse-dialect-postprocesstext-is-not-a-function/49963 "2016-09-10T10:35:15Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)\
**Post date:** [11. September 2016 um 12:12 UTC](https://meta.discourse.org/t/typeerror-discourse-dialect-postprocesstext-is-not-a-function/49963/11 "2016-09-11T12:12:09Z")

</div>

Okay, so it works locally (or in a dev) environment because you don’t have to use register\_asset to get to it. The issue you are going to have is `register_asset` doesn’t accept font files.

> <https://github.com/discourse/discourse/blob/4d65370797d87d90741f2f3774b7c6dccdb6a7ae/lib/discourse_plugin_registry.rb#L96-L119>

So the best solution I can give you, is one of the following

1. Upload the fonts to a CDN, reference the CDN in the CSS (applies for all scenarios).
2. Upload the fonts to the root of your main site and in the CSS use /fonts/overwatch-heroes…

- Inform people in the README to do the same so it works for them too (doesn’t really apply for those running on a sub-domain though)

1. Instruct users to change the Site Setting `authorized extensions` to be able to upload the fonts, then copy and paste CSS into the Admin \> Customize area to reference those uploaded URLs for the @font-face (and in your plugin CSS, do not have that @font-face portion in it)

- This is probably the most convoluted way

So without getting the fonts to a location where they can be served, you won’t be able to reference them ☹

---

_[View the full topic](https://meta.discourse.org/t/typeerror-discourse-dialect-postprocesstext-is-not-a-function/49963)._
