Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to get metrics for variable fonts #219

Open
floratmin opened this issue Dec 6, 2024 · 1 comment
Open

Allow to get metrics for variable fonts #219

floratmin opened this issue Dec 6, 2024 · 1 comment

Comments

@floratmin
Copy link

When using a variable font the variation axes have first to be fixed to get the right font metrics. I use for this the package subset-font, which gives back a node buffer, which I can convert to a blob. But unpack fromBlob uses the package blob-to-buffer, which throws when run in node and even converts the blob back to a buffer. So it would be useful to provide a function fromBuffer.

@michaeltaranto
Copy link
Contributor

Hey this is really interesting!

As you've gathered variable fonts are not currently supported, but interesting technique being used here. Im keen to dig into subset-font a little more actually, looks like a potentially avenue to first class what you're doing — but that is a future feature.

Let me have a look at what blob-to-buffer is giving us, as there may be an newer way to handle this. Did you have a repro repo i can test on?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants