-
Notifications
You must be signed in to change notification settings - Fork 71
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
Support COLR v1 table. #133
Conversation
@laurmaedje beta quality, but seems to be working ok-ish. Here is Some stuff is hard to represent in SVG, like weird transforms order, sweep gradients, gradients rotation (?), some blending modes. For you this just a progress report and you can try out the new API. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work! There are two minor things I noticed while reading.
src/lib.rs
Outdated
Transform { a, b, c, d, e, f } | ||
} | ||
|
||
#[cfg(feature = "variable-fonts")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this cfg is a bit strange
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, we should either make it private, as it was before, or remove cfg altogether.
About With the stagnation of the SVG2 specification(issue), SVG can no longer keep up with the times. |
That hack would work only in a browser. And we can ignore sweep gradients completely for now. font2svg is just a demo. It doesn't have to be perfect. |
Maybe this helps, FYI. googlefonts/oxidize#48 |
It's a bit different, but thanks. |
@laurmaedje I've published a new ttf-parser with COLR v0. No timeline for v1. |
If you think you don't have time to finish it, I can look into finishing this in the next few weeks. |
Yeah, no plans for this month. And it's a tricky beast. Maybe would have time to at least update the ttf-explorer. |
Do you know if there is also some way I can view the "reference" of how each glyph is supposed to look to compare? Something like |
Okay, looks like |
I was using Chrome. |
Could you tell me how exactly you used Chrome to test it? So how did you make it show the glyphs that you wanted to test? |
Superseded by #145 |
TODO: