Page 1 of 1

Using fonts in Standalone HTML5

Posted: Tue Nov 10, 2020 3:38 pm
by gsillevis
Hello!

I've been looking at other threads and trying to solve this problem, but to no avail. So I turn to you, wise ones!

I want to use a custom font (uwch.ttf) in my program. When I export the HTML5 standalone and run it, whenever it gets to the page where the font is, the whole thing stops working. So I am sure I am simply failing to use the font correctly. Can someone walk me through how to do it right?

I add the font file in 'copy files'. Just the file itself, with no extra path. I have also tried it with the path "/fonts/uwch.ttf" and "/resources/uwch.ttf"

in preopenstack, I wrote

start using font file (specialfolderpath("resources") & "/uwch.ttf")

I feel like this is supposed to be super easy, so I must just be missing something. Please help!

Re: Using fonts in Standalone HTML5

Posted: Tue Nov 10, 2020 4:23 pm
by Klaus
Hi gsillevis,

ALWAYS check the dictionary!
It told me the "start using font file..." is only available on the Mac and Windows, but NOT in HTML! 8)


Best

Klaus

Re: Using fonts in Standalone HTML5

Posted: Tue Nov 10, 2020 4:30 pm
by gsillevis
So do you know of any other solution?

Re: Using fonts in Standalone HTML5

Posted: Tue Nov 10, 2020 5:17 pm
by Klaus
No sorry.

Your message contains 9 characters.
You need to enter at least 10 characters.