Commit a6c747d2b5c45ba08be27547065c343ba95472e3

David Turner 2000-11-08T19:44:48

fixed a small bug: the "linearHoriAdvance" and "vertHoriAdvance" were not set correctly when the auto-hinter is used to load/hint a glyph..

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/src/autohint/ahhint.c b/src/autohint/ahhint.c
index f458f63..dc06e42 100644
--- a/src/autohint/ahhint.c
+++ b/src/autohint/ahhint.c
@@ -1042,6 +1042,10 @@
     /* save current glyph metrics */
     metrics = slot->metrics;
 
+    /* set linear horizontal metrics */
+    slot->linearHoriAdvance = slot->metrics.horiAdvance;
+    slot->linearVertAdvance = slot->metrics.vertAdvance;
+
     switch ( slot->format )
     {
     case ft_glyph_format_outline: