ref: b8817177a0ac22993a425e3158ac9fbb55cd87c1
parent: c9ce9e4e3fcb90a58c3dd7c2d53b03c71482c678
author: David Turner <[email protected]>
date: Fri Sep 15 13:17:17 EDT 2000
small bug-fix, the linearHoriBearing value was not loaded not computed correctly
--- a/src/cff/t2gload.c
+++ b/src/cff/t2gload.c
@@ -1970,12 +1970,15 @@
/* 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;
--- a/src/cid/cidgload.c
+++ b/src/cid/cidgload.c
@@ -274,7 +274,8 @@
/* 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;
@@ -281,6 +282,7 @@
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 )
--- 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,12 +224,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;