We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85c50e7 commit e9fa9a3Copy full SHA for e9fa9a3
fontforge/parsettf.c
@@ -6305,6 +6305,10 @@ static SplineFont *SFFillFromTTF(struct ttfinfo *info) {
6305
info->bad_cff = true;
6306
}
6307
if ( info->isFixedPitch ) {
6308
+ /* Modern Unicode fonts tend to have lots of zero-width
6309
+ characters like diacritics or control chars, e.g. LRM.
6310
+ These characters don't have an advance width and
6311
+ shouldn't affect pitch computation. */
6312
bool valid = (sc->width==0 || sc->width==info->advanceWidthMax || sc->width==info->advanceWidthMax / 2);
6313
if (!valid) {
6314
LogError(_("The advance width of %s (%d) does not match the font's advanceWidthMax (%d) and this is a fixed pitch font\n"),
0 commit comments