I'm using opentype.js on my website behind my "try it out" feature. A site visitor just alerted me that he can't type any special characters. Umlaute, Paragraph marks, etc. don't render. However, I have one font on there that has a lot of variations. Typing an Umlaut there does render a character, though the wrong one. Charset on the page is UTF-8. The format of the font is openType ttf, and it works fine on my machine. I've gone through the opentype.js documentation and haven't found anything illuminating.
Anyone have any ideas?
Example:
https://www.waldenfont.com/tryit.asp?fontid=226
Comments
That’s evidence of an character-to-glyph mapping error. If the character is correctly encoded in the font and displays properly elsewhere, then opentype.js could either be incorrectly handling the initial cmap table lookup or performing an erroneous glyph substitution.
Also the answer to your problem is, surprisingly, that your Unicode values in your .ttf font binary (oldkirkItalic.ttf) are all scrambled. The problem has nothing to do with your type tester. For example, this font has a circumflex glyph in codepoint 00EB (ë – Latin Small Letter E with Diaeresis).
I'm working on an open source plug-and-play type tester that will be available sometime in the future, but no ETA unless someone wants to help with funding it. I think it would be very useful to have a tool like this for small DIY foundries and indie type designers who want to set up a simple shop.