Hosting custom fonts
Configure loading webfonts for use in a form.
Last updated
Was this helpful?
Configure loading webfonts for use in a form.
Last updated
Was this helpful?
If you have font files that you are already hosting somewhere else (like Amazon S3), you can use them in your flows.
Since Formsort will load the fonts from the responder's browser, which is not the same origin as your font will be hosted on, you must configure Sharing (CORS) headers on the server hosting the fonts. You must permit access from the Formsort flow origin, or any that you are hosting Formsort on directly.
For S3, a compatible CORS policy would look like the following.
To verify your CORS configuration, you can use the following curl statement.
If correctly configured, the result of the above command should be:
The custom fonts menu can be found in the Theme tab -> Typography ->Add font family... -> Custom Fonts
Once you're in the Custom Fonts menu, add the font family name,
then upload the font files,
and finally map the font weights.
And then you're done!
You could also just have a single <CORSRule>
with a <AllowedOrigin>*</AllowedOrigin>
if you'd like to allow all origins. Read more about .