-
Notifications
You must be signed in to change notification settings - Fork 467
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
[COLRv1] Can't build font #429
Comments
See googlefonts/nanoemoji#455 && googlefonts/picosvg#304 Summary of above: this only happens with skia-pathops 0.8.0, until this gets fixed in picosvg please keep skia-pathops pinned to the previous release thanks |
Thank you!!! This fixed the issue! |
Fixes #304 Fixes googlefonts/nanoemoji#455 Fixes googlefonts/noto-emoji#429 since skia-pathops v0.8.0, the Path.segments (SegmentPenIterator) may yield segments with an on-curve point set to None when closed contour is only comprised of quadratic beziers and all the on-curve points can be implied as in-between consecutive off-curve points (special TrueType quadratic spline), this was to match FontTools pen protocol, which the SegmentPenIterator is supposed to work with. Picosvg was using this interface for converting from pathops.Path to SVG path.d strings, and uncaught TypeError was being raised when that happened. However, it turns out picosvg can avoid the SegmentPenIterator altogether when converting from pathops.Path to SVG, because the Path's RawPathIterator (i.e. iterating over the path itself as opposed to Path.segments) already yields (verb, points) for individual segment that matches what SVG expects (in this particular case, a move, a list of quadratic bezier segments each with one off-curve point, and a close command, no fonttools-style implied points anywhere). This way we can translate between SVG<=>pathops.Path in a more straightforward way (since they are closed to one another than to fonttools pen protocol more geared to font format specifics).
I'm having trouble building colrv1 font.
What i did:
cloned main
First I've made new venv
installed requirements
did size check
and ran make command
moved built fonts to fonts folder
(I've skipped colrv1_generate_configs.py since there is no such file and it worked fine like some months ago to build font without it)
started " nanoemoji *.toml " and it keeps failing on "picosvg/clipped/emoji_u1f4fc.svg" or "picosvg/clipped/emoji_u1f4f0.svg" (it's random each time)
The problem started like month ago and still can't build font and i have no idea if that is problem with dependencies
![Untitled](https://private-user-images.githubusercontent.com/22264125/254001138-df1da278-7505-4abc-803d-5d8ac928f753.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2ODcxMzYsIm5iZiI6MTczOTY4NjgzNiwicGF0aCI6Ii8yMjI2NDEyNS8yNTQwMDExMzgtZGYxZGEyNzgtNzUwNS00YWJjLTgwM2QtNWQ4YWM5MjhmNzUzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE2VDA2MjAzNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTY3NzgzZDNmM2I1YTdiMmRmYzY4MDE3YWIyZTUyZGZmNWZhNDQyMWYwYmU3YWExMDY2NTI3MTBhYTY0MWI5YmUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.TKdLhGSPRtuuPcr6Vpp37hhUyN1DzsXO7-GlQ_fZ_q0)
Im on Ubuntu 22.04 LTS
The text was updated successfully, but these errors were encountered: