Page 1 of 1

Text fonts and HTML5

Posted: Thu Jan 04, 2018 5:53 pm
by Eopin
Hi,

I have a very simple question... In all HTML5 examples I've tried myself, the text looks bad. Especially if the text size is 12 or larger, it is very coarse and not scaled properly.

I've tried using Arial or Verdana, and I've included the TTF file in the standalone using "Copy files". I've added "start using font" in "preOpenStack". But they have no effect.

What am I missing?

BR,
Pauli

Re: Text fonts and HTML5

Posted: Sat Jan 06, 2018 1:12 am
by [-hh]
Add the fonts you need (best only such that are UTF-8 complete), as you did.
And set the stack's or card's or field's textfont to one of that fonts.
That's all. Don't use "start using ..." what doesn't work in HTML5 standalones.

Re: Text fonts and HTML5

Posted: Sun Jan 07, 2018 12:08 pm
by Eopin
Thanks. Using DP-11,

- I create a new stack, I set the stack font to be Verdana or Arial, font size 20
- I place one button or field in the stack; I either don't set the font or set it to the same value as above
- I include the TTF file and create the HTML5 standalone

The text in the button or field looks awful.

If I use smaller fonts, such as 10 or 12, the phenomenon is not that visible but it is there.

Do large fonts work for you? What am I doing wrong?

Pauli

Re: Text fonts and HTML5

Posted: Sun Jan 07, 2018 5:16 pm
by [-hh]
From other reasons I currently don't do HTML5 deployment and also I don't develop in dp11.

Until dp10 such font settings worked out of the box (although the fallback font was UTF8-uncomplete).

Now I tested with LC 8.1.8 and LC 9.0.0-dp11 and had the same bad results as you.
Tested on MacOS 10.13.2

You should urgently report the bug.
HTML5 deployment is not usable with that.

Hermann

Re: Text fonts and HTML5

Posted: Sun Jan 07, 2018 7:09 pm
by Eopin
Dear Hermann,

Thank you very much, danke schön!

I've contacted the support.

Best regards,

Pauli

Re: Text fonts and HTML5

Posted: Mon Jan 08, 2018 9:48 pm
by Eopin
Hi,

LiveCode's support confirmed this. This is filed now:

http://quality.livecode.com/show_bug.cgi?id=20839

A bit recursive text :-) I hope this will be fixed soon.

BR,

Pauli