# WEB 2: embedded fonts

**URL:** <https://forum.xojo.com/t/web-2-embedded-fonts/66979>\
**Category:** Web SDK\
**Created:** [November 24, 2021, 12:59pm UTC](https://forum.xojo.com/t/web-2-embedded-fonts/66979 "2021-11-24T12:59:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chiara\_algidi](https://forum.xojo.com/letter_avatar_proxy/v4/letter/c/73ab20/32.png) [@chiara\_algidi](https://forum.xojo.com/u/chiara_algidi)\
**Post date:** [November 24, 2021, 12:59pm UTC](https://forum.xojo.com/t/web-2-embedded-fonts/66979/1 "2021-11-24T12:59:21Z")

</div>

I’m trying to build a web ui custom control, so it works, except it does not display its icons (fonts) because I don’t known how to load the fonts files (woff, woff2, etc)…  
I used “SessionCSSURLs event handler” to load the css file, and so far it’s ok, but inside the css file the link to the font file “font / example.woff” is declared which in execution is not found …  
how should i load the fonts?  
Any suggestions is apriciaded

---

<div class="post-metadata">

**Author:** ![Tim\_Parnell](https://forum.xojo.com/user_avatar/forum.xojo.com/tim_parnell/32/161_2.png) [@Tim\_Parnell](https://forum.xojo.com/u/Tim_Parnell)\
**Post date:** [November 24, 2021, 3:42pm UTC](https://forum.xojo.com/t/web-2-embedded-fonts/66979/2 "2021-11-24T15:42:39Z")

</div>

If the CSS references the font with a relative path you’ll have to serve the font from that path with either [HandleURL](https://documentation.xojo.com/api/web/webapplication.html#webapplication-handleurl) or a reverse proxy configured to do so.

[My app Lifeboat](https://strawberrysw.com/lifeboat) can help you configure nginx to serve Static Files.

If you serve the file with [HandleURL](https://documentation.xojo.com/api/web/webapplication.html#webapplication-handleurl) you’ll need to include the font inside your web app. In the event handler you’ll need to check the `Request.Path` to see if the path matches that of the font file. The example project `WebService-HandleURL.xojo_binary_project` might help.
