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

Fix problems found trying to build color-fonts repo updates #194

Merged
merged 10 commits into from
Nov 25, 2020
Merged

Conversation

rsheeter
Copy link
Collaborator

@rsheeter rsheeter commented Nov 24, 2020

Covers issues encountered trying to update https://github.com/googlefonts/color-fonts using python 3.9, adding tests where possible. Notably we had stopped using picosvgs and untouchedsvg wasn't working very well.

Fixes #196.

@rsheeter rsheeter changed the title toml required toml required; py3.9 fix Nov 24, 2020
@rsheeter
Copy link
Collaborator Author

For some reason importlib.resources fails to acknowledge our resources on 3.9 while importlib_resources works as expected.

@rsheeter rsheeter requested a review from anthrotype November 24, 2020 22:26
@rsheeter rsheeter changed the title toml required; py3.9 fix toml required; py3.9 fix; tweaks to make color-fonts repo update easier Nov 24, 2020
@rsheeter rsheeter changed the title toml required; py3.9 fix; tweaks to make color-fonts repo update easier Fix problems found trying to build color-fonts repo updates Nov 25, 2020
@@ -327,8 +327,7 @@ def _add_glyph(svg: SVG, color_glyph: ColorGlyph, reuse_cache: ReuseCache):
svg_use.attrib["y"] = _ntos(ty)
transform = reuse.translate(-tx, -ty)
if transform != Affine2D.identity():
# TODO apply scale and rotation. Just slap a transform on the <use>?
raise NotImplementedError("TODO apply scale & rotation to use")
svg_use.attrib["transform"] = _svg_matrix(transform)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice! 👍

@rsheeter rsheeter merged commit d8fe0f7 into master Nov 25, 2020
@rsheeter rsheeter deleted the colr_vf branch November 26, 2020 03:06
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

Successfully merging this pull request may close these issues.

Can't build twemoji picosvg format: TODO apply scale & rotation to use
2 participants