GSUB: replace by nothing, a.k.a. deleting a glyph.
Roel Nieskens
Posts: 188
Is there some way to do the following?
<div>lookup ccmp { </div><div> sub A B' C by []; </div><div>} ccmp;</div><div><br></div>
Where the orginal glyph for B is simply removed. Or in other words, replaced by nothing.
I tried leaving out the "by" part, replacing with [] or "", and scoured the afdko documentation but nothing will compile.
Or is this simply not possible?
I tried leaving out the "by" part, replacing with [] or "", and scoured the afdko documentation but nothing will compile.
Or is this simply not possible?
0
Comments
-
Perhaps
sub A' B' C by A;
will work.3 -
Thanks, Jens. But how would you solve the following?
sub A by []; # This doesn't compile
Edit, I'm seeing this being done in some ttx, like here: https://github.com/googlefonts/noto-emoji/blob/833a43d03246a9325e748a2d783006454d76ff66/NotoColorEmoji.tmpl.ttx.tmpl#L330
0 -
I think it may not be possible in high-level editors. Neither the FDK syntax nor VOLT seem to support substitution by "no glyph". I tried to export a .fea file from NotoColorEmoji via OTMaster, and it throws an error due to empty target sequence.
Do you actually need to remove the glyph, or could you replace it by a zero-width glyph with no outline instead?3 -
By the looks of the commit message it was to work around a specific issue, in combination with custom tooling. That's that mystery solved, I suppose.
Your first solution helps me out in my case. Thanks again, Jens!0 -
Even though the OpenType specification prohibits it, FontCreator allows you to define entries in a multiple substitution lookup with no output glyphs. This is a trick to delete glyphs, and seems to be supported by Windows and web browsers.
lookup MultipleSubstitution1 {<br> sub A -> "<delete>";<br>}
4
Categories
- All Categories
- 43 Introductions
- 3.7K Typeface Design
- 799 Font Technology
- 1K Technique and Theory
- 617 Type Business
- 444 Type Design Critiques
- 541 Type Design Software
- 30 Punchcutting
- 136 Lettering and Calligraphy
- 83 Technique and Theory
- 53 Lettering Critiques
- 483 Typography
- 301 History of Typography
- 114 Education
- 68 Resources
- 498 Announcements
- 79 Events
- 105 Job Postings
- 148 Type Releases
- 165 Miscellaneous News
- 269 About TypeDrawers
- 53 TypeDrawers Announcements
- 116 Suggestions and Bug Reports