Minor fixes#26
Conversation
LaurenzV
left a comment
There was a problem hiding this comment.
LGTM. The thing I was worried about about the different maxp versions is already handled here:
Lines 18 to 49 in 816fcb9
So that shouldn't be a problem:
Another small thing I noticed:
Lines 224 to 226 in 816fcb9
We probably shouldn't be adding those tables for variable fonts since skrifa will discard any hinting information, and since we zero out hinting data in maxp I'm not sure if this could cause problems. However, I am fairly certain that variable fonts with hinting are not really a thing, so it probably won't cause problems. But at the very least might be worth adding a TODO.
|
Hmm well it does seem to be a thing at least: https://github.com/googlefonts/how-to-hint-variable-fonts Not sure how common it is in practice though. |
|
What would the fix be? Just skipping those tables if we use skrifa interjection? |
|
Yep. If you do make a change maybe let's add a TODO to look into adding a test for this as well, but dont need to block on this I think. |
|
Done. I first added a helper and reshuffled the commits, but the diff since you LGTM'd is https://github.com/typst/subsetter/compare/c53fc9c34e22664582246f6aa507062763e1193f..6174cf8e0a6c9d1836b0b7c50744982dd28c9b8a. |
|
If this looks good, I'll merge and cut a release. Looking at the changes, I would probably make a patch release rather than a minor release. The MSRV bump is the one thing standing out, but it's not broadly considered a breaking change and when we added it in the first place I also just released a new patch version. |
|
Looks good! |
No description provided.