question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Emit table GDEF with GlyphClassDef and LigatureCaretByPos statements

See original GitHub issue

When glyphsLib produces UFO for a font with ligature caret positions, the generated features.fea should contain a table GDEF block with LigatureCaretByPos statements. Originally, I planned doing this in ufo2ft but that seems the wrong place; see also https://github.com/googlei18n/ufo2ft/issues/91.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:12 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
brawercommented, Jan 26, 2017

Here’s the logic of Glyphs.app, summarizing a discussion thread on this bug for reference:

  • Base: any glyph that has an attaching anchor, and that is neither classified as Ligature nor Mark using the definitions below;
  • Ligature: if subCategory is “Ligature” and the glyph has at least one attachment anchor;
  • Mark: if category is “Mark” and subCategory is either “Nonspacing” or “Spacing Combining”;
  • Compound: never assigned by Glyphs.app.
0reactions
brawercommented, Feb 20, 2017

Guess we can close this. Please file another bug (with a concrete example) if I’m wrong.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Emit table GDEF with LigatureCaretByPos statements #91
Actually, should the table GDEF statement really be generated by ufo2ft? Just wondering because this logic sounds quite specific to Glyphs.app, whereas ufo2ft ......
Read more >
Source code for fontTools.feaLib.parser
By default, the parser will follow ``include()`` statements in the feature file. ... languagesystem, lookup, markClass, " 'table, or glyph class definition, ...
Read more >
GDEF — Glyph Definition Table (OpenType 1.9) - Typography
The Glyph Class Definition (GlyphClassDef) table identifies four types of glyphs in a font: base glyphs, ligature glyphs, combining mark ...
Read more >
afdko - PyPI
table GDEF { GlyphClassDef ,,,; } GDEF;. is a valid statement. You just need to provide all three commas and the final colon...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found