Opentype.js: read and write OpenType fonts using JavaScript
opentype.js.org
Opentype.js: read and write OpenType fonts using JavaScript
1–7 of 7 posts
Re: Opentype.js: read and write OpenType fonts using JavaScript
#2Re: Opentype.js: read and write OpenType fonts using JavaScript
#3Neat. Although the rendered text isn't screen-reader accessible. An aria-label with the text content would solve this, though.
Re: Opentype.js: read and write OpenType fonts using JavaScript
#4Re: Opentype.js: read and write OpenType fonts using JavaScript
#5Re: Opentype.js: read and write OpenType fonts using JavaScript
#6By 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
#7By 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
Typr.js doesn't seem to have a way to write out fonts after editing them. In what way is it more versatile?
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).