-
Notifications
You must be signed in to change notification settings - Fork 23
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
Use precomputed part files for shape reuse #414
base: main
Are you sure you want to change the base?
Conversation
heads up, I wanted to make a release that included the recent couple fixes to maximum_color (i.e. removed assert width > 0, and rebuilding the glyphID cache after glueing the COLR glyphs), so I thought it'd be best to temporarily revert #407 (since it's incomplete without this #414 one), then cut the release without it, and finally revert-revert to restore it to the |
It should be harmless to leave #407 in place, no? Edit: also fine to roll out/back ofc. Edit2: rebased on main. |
3176f99
to
b811c51
Compare
src/nanoemoji/svg.py
Outdated
) | ||
|
||
|
||
def _svg_units_to_font_units(view_box: Rect, config: FontConfig, glyph_width: int) -> Affine2D: |
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 _svg_units_to_font_units
and _font_units_to_svg_units
do the same thing (both call map_viewbox_to_otsvg_space
with same parameters) but I'd expect them to be one the inverse of the other.. Am I missing anything?
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.
maybe you wanted to use map_viewbox_to_font_units
below? 🤔
e5cb9f1
to
558eea2
Compare
Fixes #415. Fixes #313. Makes identifying and troubleshooting reuse failure far far easier as things in build/parts-merged.json with donor null after a build are the ones that failed affine_between, you can look to see if you agree with how things grouped, etc.
TODO list:
nanoemoji ../svg/emoji_u1f6d2.svg
from https://github.com/googlefonts/noto-emoji/tree/colrv1/colrv1 fails