photopea / Typr.js

Typr.js - process fonts in Javascript
MIT License
914 stars 73 forks source link

Font does not extract its font family in array objects #51

Open CNV1018 opened 4 months ago

CNV1018 commented 4 months ago

Hi, I come across these fonts: Bahnschrift, Sitka, Sitka italic, Cascadia Mono, Cascadia Code, and Segoe UI Variable. I checked the installed fonts, they come in a lot of font styles. However, when I do the Typr.parse(fontContent), it only returns me 1 object, not like TTC font which can return multiple objects.

image

image

I checked online, these fonts are called as Variation Fonts. How can I get the glyph content correctly for each font style?

photopea commented 4 months ago

Typr.js does not support variable fonts yet :(