News for hackers. Stuff that matters.
Re:Opentype.js: read and write OpenType fonts using JavaScript by IvanK_net on Wednesday February 15, 2017 @07:07AM (#13651422)
By the way, OpenType.js has problems with parsing many fonts (old structures of TTF tables) and also with rendering some OTF (CCF) glyphs. If you are looking for a more versatile library, I recommend using Typr.js https://github.com/photopea/Typr.js
Re:Opentype.js: read and write OpenType fonts using JavaScript by kevinb7 on Wednesday February 15, 2017 @08:41AM (#13651891)
Typr.js doesn't seem to have a way to write out fonts after editing them. In what way is it more versatile?
Re:Opentype.js: read and write OpenType fonts using JavaScript by IvanK_net on Wednesday February 15, 2017 @09:44AM (#13652305)
You mean writing a font back into a font file? Yes, this feature is not available now.

OpenType.js throws errors for many font files. It supports just a specific subset of standard font structures. It also renders some glyphs incorrectly. Typr.js does not have these problems (at least not during my testing).