googlefonts / fontview

Demo app that displays fonts with a free/libre/open-source text rendering stack: FreeType, HarfBuzz and Raqm
Other
322 stars 37 forks source link

Combining accents #19

Closed frankrolf closed 7 years ago

frankrolf commented 7 years ago

Something unexpected happens when using combining accents:  Unless the target combination actually exists as a proper code point, such as U+0061 (a) + U+0300 (combining grave) = U+00E0 (agrave), they fall back to .notdef.

The combining accents in question definitely are contained in the font, the sequence used here: G̃g̃ or U+0047 U+0303 U+0067 U+0303.

The attached screenshot of course is not a direct comparison, it is just a demonstration to show the expected result (both variable and static fonts are built from the same data).

screen shot 2017-02-01 at 16 53 20
brawer commented 7 years ago

Can you send me the font? sascha@brawer.ch

frankrolf commented 7 years ago

That’s done. Curious what you find!

brawer commented 7 years ago

Found the problem: Your cmap table had no entry for U+0303 and other combining characters. When I dump your font to TTX with fonttools, manually add <map code="0x303" name="tildecmb"/> to the cmap table, and convert this back to binary OpenType, it works fine.

image