-
Notifications
You must be signed in to change notification settings - Fork 15
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
Handle tokens in .glyphs features #92
Comments
Files that might contain tokens from sources obtained using https://github.com/rsheeter/google_fonts_sources: $ find sources -name '*.glyphs' -exec grep -l "[$]" {} \;
sources/ofl/leaguespartan/sources/LeagueSpartan.glyphs
sources/ofl/zenloop/sources/ZenLoop.glyphs
sources/ofl/notosansgurmukhi/sources/NotoSansGurmukhi.glyphs
sources/ofl/changa/sources/Changa.glyphs
sources/ofl/atkinsonhyperlegible/sources/AtkinsonHyperlegible-Italic.glyphs
sources/ofl/notonastaliqurdu/sources/NotoNastaliqUrdu.glyphs
sources/ofl/loversquarrel/sources/LoversQuarrel.glyphs
sources/ofl/notoseriftamil/sources/NotoSansTamil.glyphs
sources/ofl/redrose/glyphs/RedRose.glyphs
sources/ofl/karantina/Sources/karantina.glyphs
sources/ofl/ole/sources/Ole.glyphs
sources/ofl/rugeboogie/sources/RugeBoogiePro.glyphs
sources/ofl/anton/sources/Anton.glyphs
sources/ofl/ephesis/sources/Ephesis.glyphs
sources/ofl/baskervville/documents/workshop/drawing/Glyphs-171020/Baskerwille-171020 AF.glyphs
sources/ofl/festive/sources/Festive-Pro.glyphs
sources/ofl/signika/sources/Signika-Italic.glyphs
sources/ofl/signikanegative/sources/Signika-Italic.glyphs
sources/ofl/genos/sources/Genos-Italic.glyphs
sources/ofl/genos/sources/Genos.glyphs
sources/ofl/oi/sources/Oi.glyphs
sources/ofl/oi/sources/Old Glyphs file/Oi-2.glyphs
sources/ofl/oi/sources/Old Glyphs file/Oi-1.glyphs
sources/ofl/qwigley/sources/Qwigley.glyphs
sources/ofl/jetbrainsmono/sources/JetBrainsMono.glyphs
sources/ofl/jetbrainsmono/sources/JetBrainsMono-Italic.glyphs
sources/ofl/notosanstamil/sources/NotoSansTamil.glyphs
sources/ofl/yaldevi/documentation/old-sources/glyphs/10-09-2015/AyannaNarrow-04.glyphs
sources/ofl/karla/sources/Karla-Roman.glyphs
sources/ofl/notoserifgurmukhi/sources/NotoSansGurmukhi.glyphs
sources/ofl/brygada1918/sources/Temp Archive/Brygada_ITALIC_MASTER.glyphs Eliminating a few (sources/ofl/oi/sources/Old Glyphs file/Oi-2.glyphs, sources/ofl/oi/sources/Old Glyphs file/Oi-1.glyphs, sources/ofl/yaldevi/documentation/old-sources/glyphs/10-09-2015/AyannaNarrow-04.glyphs, sources/ofl/baskervville/documents/workshop/drawing/Glyphs-171020/Baskerwille-171020 AF.glyphs, sources/ofl/brygada1918/sources/Temp Archive/Brygada_ITALIC_MASTER.glyphs) for looking suspicious we can grab things that look a bit like symbols:
|
In https://raw.githubusercontent.com/notofonts/gurmukhi/main/sources/NotoSansGurmukhi.glyphs search for aumatra_rightfix. It appears to be a number and IIUC resolves to a fontMaster specific value in |
@anthrotype pointed me at https://glyphsapp.com/learn/tokens |
If we had adobe-type-tools/afdko#1350 perhaps we could convert simple cases to fea cleanly. |
The cases above are not "tokens" but "number values" which are defined on each master. Tokens are a bit different - they are predicates like so:
(This expands to a class of all glyph names containing |
okay, getting to this now. naively, my plan is:
|
Continuing from #91, implement some or all of https://github.com/googlefonts/glyphsLib/blob/24b4d340e4c82948ba121dcfe563c1450a8e69c9/Lib/glyphsLib/builder/tokens.py#L12 and fail on whatever parts are not implemented. Used by https://github.com/googlefonts/glyphsLib/blob/24b4d340e4c82948ba121dcfe563c1450a8e69c9/Lib/glyphsLib/builder/features.py#L85. Consider looking at our actual sources to determine what is needed.
The text was updated successfully, but these errors were encountered: