[HTML5] Font embedding

I can’t wrap my head around font embedding in HTML5 target. For some reason, my project only embeds 2 fonts I used at the start of the project, but adding a new one seems impossible. What is the current way to embed fonts in HTML5, since most articles on the web are at least few years old.

Adding a TTF font (or some OTF fonts) in your assets directory causes Lime to run a webfont generator on those file. Our rendering on OpenFL TextField uses webfonts, so the generated index.html shows CSS names for each of the fonts we generated and embedded for you in your project.

If you use a custom index.html template, you can add your own manually generated webfonts, otherwise we’ll generate what we can based on the fonts you provide in your project :slight_smile: