Skip to content

Commit 224315a

Browse files
author
George Williams
committed
Make default char of OS/2 be space for otf and .notdef for ttf. This is a guess at what should be done.
1 parent 48402da commit 224315a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

fontforge/stamp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include <time.h>
22

3-
const time_t source_modtime = 1166139502;
4-
const char *source_modtime_str = "15:38 14-Dec-2006";
3+
const time_t source_modtime = 1166145431;
4+
const char *source_modtime_str = "17:17 14-Dec-2006";
55
const char *source_version_str = "20061214";

fontforge/tottf.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3239,7 +3239,9 @@ docs are wrong.
32393239
QuickBlues(sf,&bd); /* This handles cid fonts properly */
32403240
os2->xHeight = (bd.xheight >= 0.0 ? bd.xheight : 0);
32413241
os2->capHeight = (bd.caph >= 0.0 ? bd.caph : 0);
3242-
os2->defChar = ' ';
3242+
os2->defChar = 0;
3243+
if ( format==ff_otf || format==ff_otfcid )
3244+
os2->defChar = ' ';
32433245
os2->breakChar = ' ';
32443246
os2->maxContext = 1; /* Kerning will set this to 2, ligature to whatever */
32453247
}

0 commit comments

Comments
 (0)