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

How to interpolate between two master fonts? #424

Closed
michintosh opened this issue Feb 8, 2020 · 1 comment
Closed

How to interpolate between two master fonts? #424

michintosh opened this issue Feb 8, 2020 · 1 comment
Labels
editing Issues related to editing of glyphs, regarded as out of scope for now

Comments

@michintosh
Copy link

Hi,

I'm trying for a project to create a live interpolation between two "master" fonts (one is Source Sans Regular and the other Source Sans Black) giving to a slider a value with range 0 -100 that will be lerped in order to give the font the current interpolated value.

To do so, I've loaded both fonts and, while looping over all of the glyphs paths commands, I've created another subset of commands that have the result of each lerped coordinate.

It works just fine with some characters, but with other it gets really "dirty" and "fuzzy", with bezier curves not being handled so well.

I've read in other posts that this could be related to some characters of the two weights not having the same number of points, but it's strange to see it happening also with some glyphs that have the same amount of point (inspected in Adobe Illustrator).

I've also tried using different file formats (.ttf, .otf and .woff), but even if the errors seems a little different, they're still there.

Is there maybe another way of achieving this result?

Thx

@Connum
Copy link
Contributor

Connum commented Feb 5, 2023

I would say this is outside of the scope of this library.

@Connum Connum added the editing Issues related to editing of glyphs, regarded as out of scope for now label Feb 5, 2023
@ILOVEPIE ILOVEPIE closed this as not planned Won't fix, can't repro, duplicate, stale Jun 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
editing Issues related to editing of glyphs, regarded as out of scope for now
Projects
None yet
Development

No branches or pull requests

3 participants