ref: 0ab2b62d3fa6b3c5a50ece8b322bf21cc0e38d52
parent: e2e56f9dd54b1af0fcd6e93c887e51d2e6d41497
author: Werner Lemberg <[email protected]>
date: Sat Sep 9 04:08:47 EDT 2017
[autofit] Improve communication with ftgrid. * src/autofit/afhints.c (af_glyph_hints_get_segment_offset): Provide values in font units.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2017-09-09 Werner Lemberg <[email protected]>
+
+ [autofit] Improve communication with ftgrid.
+
+ * src/autofit/afhints.c (af_glyph_hints_get_segment_offset):
+ Provide values in font units.
+
2017-09-08 suzuki toshiya <[email protected]>
[base] Remove a check for resource ID in the resource fork driver.
--- a/src/autofit/afhints.c
+++ b/src/autofit/afhints.c
@@ -507,8 +507,8 @@
return FT_THROW( Invalid_Argument );
seg = &axis->segments[idx];
- *offset = ( dim == AF_DIMENSION_HORZ ) ? seg->first->ox
- : seg->first->oy;
+ *offset = ( dim == AF_DIMENSION_HORZ ) ? seg->first->fx
+ : seg->first->fy;
if ( seg->edge )
*is_blue = (FT_Bool)( seg->edge->blue_edge != 0 );
else
@@ -515,7 +515,7 @@
*is_blue = FALSE;
if ( *is_blue )
- *blue_offset = seg->edge->blue_edge->cur;
+ *blue_offset = seg->edge->blue_edge->org;
else
*blue_offset = 0;