# Custom Font Download Error in Pavlovia

**URL:** https://discourse.psychopy.org/t/custom-font-download-error-in-pavlovia/28723
**Category:** Online experiments
**Tags:** resources, font, online, pavlovia
**Created:** [April 19, 2022, 8:17pm UTC](https://discourse.psychopy.org/t/custom-font-download-error-in-pavlovia/28723 "2022-04-19T20:17:34Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Mert\_Kucuk](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/mert_kucuk/32/33876_2.png) [@Mert\_Kucuk](https://discourse.psychopy.org/u/Mert_Kucuk)
#### Post date: [April 19, 2022, 8:17pm UTC](https://discourse.psychopy.org/t/custom-font-download-error-in-pavlovia/28723/1 "2022-04-19T20:17:34Z")

</div>

URL of experiment:  
gitlab: [Sign in · GitLab](https://gitlab.pavlovia.org/kmkucuk12/mertfont)

Description of the problem:  
Trying to download custom font files as resources from the online directory and I encounter errors. This is specifically a resource download problem. Font files are both in local and online directories. Psychopy version is 2022.1.2, running on windows 10, used four different browsers (chrome, edge, opera, firefox); error persists. Are there workarounds?

Error occurs for both scenarios below:

1. I add resources within Experiment Settings\>Online\>Additional Resources
2. I write a code for downloading the font file manually.  
code for download: psychoJS.\_serverManager.prepareResources([{name:‘LexendRegular.ttf’,path:‘fonts/LexendRegular.ttf’}])

Error message change if:  
• I use the PC with local files → error message: “unable to download resource: LexendRegular.ttf: **NetworkError:** A network error occurred.”  
• I use a PC without the local files → error message: “unable to download resource: LexendRegular.ttf: **SyntaxError:** An invalid or illegal string was specified”

Interestingly, font files are downloaded without a problem in the following project (that I forked into my own git) which was discussed in an earlier post ([Custom Fonts are not working on Pavlovia](https://discourse.psychopy.org/t/custom-fonts-are-not-working-on-pavlovia/23573)). The only important difference seems to be the version (2020.2).

I would appreciate it if someone could point to a workaround.

Thanks in advance.
