Skip to content

Commit e9fa9a3

Browse files
committed
Add comment
1 parent 85c50e7 commit e9fa9a3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

fontforge/parsettf.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6305,6 +6305,10 @@ static SplineFont *SFFillFromTTF(struct ttfinfo *info) {
63056305
info->bad_cff = true;
63066306
}
63076307
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. */
63086312
bool valid = (sc->width==0 || sc->width==info->advanceWidthMax || sc->width==info->advanceWidthMax / 2);
63096313
if (!valid) {
63106314
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

Comments
 (0)