I presume I am doing something wrong.
I had a file, X.ttf, that seemed to work fine (which I did not create). I wanted to make changes to the file, so I opened a copy of the file named backupX.ttf in Glyphs 3. I made changes to some individual glyphs in the file.
I then exported the font as a TrueType file. I did not change any default settings. This created a file X.ttf (rather than backupX.ttf) with the font name of X.ttf.
In a text editor opening the new X.ttf it seemed to work. But when I tried to open an HTML file that used CSS to open the file X.ttf, I got garbled text. The text looks a bit like this:
This should say “Reciprocal promotions (Babson theme)”.
It is definitely possible this is some user error going on here. Alternatively, is there some simple explanation that could be the problem? Maybe misusing export to TrueType somehow? I checked with Inspect on Mac/Chrome and the browser seems to using the correct font.
For instance, maybe the CSS is trying to use italic or something on the font and that is confusing it?
This font uses a lot of unusual dingbats and math symbols, but the issues arise on alphanumeric ascii letters.