# How do you add custom fonts to plugins?

**URL:** <https://forum.builder.io/t/how-do-you-add-custom-fonts-to-plugins/512>\
**Category:** Technical Questions\
**Created:** [March 14, 2021, 9:08pm UTC](https://forum.builder.io/t/how-do-you-add-custom-fonts-to-plugins/512 "2021-03-14T21:08:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![buchansm](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/buchansm/32/365_2.png) [@buchansm](https://forum.builder.io/u/buchansm)\
**Post date:** [March 14, 2021, 9:08pm UTC](https://forum.builder.io/t/how-do-you-add-custom-fonts-to-plugins/512/1 "2021-03-14T21:08:35Z")

</div>

I’m working on a custom rich text editor plugin and would like to be able to use custom fonts inside the editor that match what the users will be seeing on the website. I’ve tried importing them via the main plugin file but I keep getting these errors in the console:

```
Failed to decode downloaded font: <URL>
OTS parsing error: invalid version tag

```

Any ideas on how to fix the issue? Is this even possible or will I need to upgrade my subscription plan?

---

<div class="post-metadata">

**Author:** ![korey](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/korey/32/12_2.png) [@korey](https://forum.builder.io/u/korey)\
**Post date:** [March 15, 2021, 10:27pm UTC](https://forum.builder.io/t/how-do-you-add-custom-fonts-to-plugins/512/2 "2021-03-15T22:27:41Z")

</div>

Hi @buchansm ,

Can you provide sample plugin code here, in a github gist, or a codesandbox? It will help us debug your issue.
