small bug-fix, the linearHoriBearing value was not loaded not computed correctly
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
diff --git a/src/cff/t2gload.c b/src/cff/t2gload.c
index ba86a60..a48176f 100644
--- a/src/cff/t2gload.c
+++ b/src/cff/t2gload.c
@@ -1970,13 +1970,16 @@
/* copy the _unscaled_ advance width */
- metrics->horiAdvance = decoder.glyph_width;
+ metrics->horiAdvance = decoder.glyph_width;
+ glyph->root.linearHoriAdvance = decoder.glyph_width;
/* make up vertical metrics */
metrics->vertBearingX = 0;
metrics->vertBearingY = 0;
metrics->vertAdvance = 0;
+ glyph->root.linearVertAdvance = 0;
+
glyph->root.format = ft_glyph_format_outline;
glyph->root.outline.flags = 0;
diff --git a/src/cid/cidgload.c b/src/cid/cidgload.c
index 16ebb21..94d5621 100644
--- a/src/cid/cidgload.c
+++ b/src/cid/cidgload.c
@@ -274,13 +274,15 @@
/* copy the _unscaled_ advance width */
- metrics->horiAdvance = decoder.builder.advance.x;
+ metrics->horiAdvance = decoder.builder.advance.x;
+ glyph->root.linearHoriAdvance = decoder.builder.advance.x;
/* make up vertical metrics */
metrics->vertBearingX = 0;
metrics->vertBearingY = 0;
metrics->vertAdvance = 0;
+ glyph->root.linearVertAdvance = 0;
glyph->root.format = ft_glyph_format_outline;
if ( size && size->root.metrics.y_ppem < 24 )
diff --git a/src/type1z/z1gload.c b/src/type1z/z1gload.c
index a12bb12..d9a552c 100644
--- a/src/type1z/z1gload.c
+++ b/src/type1z/z1gload.c
@@ -168,7 +168,7 @@
glyph->root.outline.n_points = 0;
glyph->root.outline.n_contours = 0;
-
+
hinting = ( load_flags & FT_LOAD_NO_SCALE ) == 0 &&
( load_flags & FT_LOAD_NO_HINTING ) == 0;
@@ -224,13 +224,16 @@
/* copy the _unscaled_ advance width */
- metrics->horiAdvance = decoder.builder.advance.x;
+ metrics->horiAdvance = decoder.builder.advance.x;
+ glyph->root.linearHoriAdvance = decoder.builder.advance.x;
/* make up vertical metrics */
metrics->vertBearingX = 0;
metrics->vertBearingY = 0;
metrics->vertAdvance = 0;
+ glyph->root.linearVertAdvance = 0;
+
glyph->root.format = ft_glyph_format_outline;
if ( size && size->root.metrics.y_ppem < 24 )