Standardize Font Appearance

Neville Smythe neville.smythe at
Sun Sep 4 05:34:40 EDT 2022

So I have conducted a more careful test of the proposed method of standardising fonts across platforms, that is, installing some Google fonts in the standalone for use in labels and fields, with the objective of setting the rects of objects on the development platform and having the same appearance on all 3 platforms: no more missing pixels or wrapped words because of the differences in fonts between the platforms.

Unfortunately the method does quite not give the hoped-for solution. Even though the fonts supposedly have the same metrics, the appearance still differs between platforms. For both NotoSans and NotoSerif I find the baselines differ by one or two pixels between Mac Monterey and Windows (which I don’t really understand, since the ascent is built into the font, but nevertheless becomes different when rendered). The pixel lengths of the tested strings were the same however: allowing just a couple of extra pixels height should be sufficient in these cases. However on Linux (Ubuntu), while the baselines were the same, the length of rendered strings differed markedly, in one test case wrapping a trailing word out of sight. And a nasty surprise, the text length on Mac High Sierra was 8% longer than on Monterey!

So I’m afraid one must still write once, test everywhere. 


More information about the use-livecode mailing list