Using fonts in Standalone HTML5

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
gsillevis
Posts: 40
Joined: Tue Oct 13, 2020 10:55 pm

Using fonts in Standalone HTML5

Post by gsillevis » Tue Nov 10, 2020 3:38 pm

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!

Klaus
Posts: 14194
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Using fonts in Standalone HTML5

Post by Klaus » Tue Nov 10, 2020 4:23 pm

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

gsillevis
Posts: 40
Joined: Tue Oct 13, 2020 10:55 pm

Re: Using fonts in Standalone HTML5

Post by gsillevis » Tue Nov 10, 2020 4:30 pm

So do you know of any other solution?

Klaus
Posts: 14194
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Using fonts in Standalone HTML5

Post by Klaus » Tue Nov 10, 2020 5:17 pm

No sorry.

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

Post Reply