[autofit] Improve communication with ftgrid.

* src/autofit/afhints.c (af_glyph_hints_get_segment_offset):
Provide values in font units.
int-not32-changes-2017
Werner Lemberg 7 years ago
parent e2e56f9dd5
commit 0ab2b62d3f
  1. 7
      ChangeLog
  2. 6
      src/autofit/afhints.c

@ -1,3 +1,10 @@
2017-09-09 Werner Lemberg <wl@gnu.org>
[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 <mpsuzuki@hiroshima-u.ac.jp>
[base] Remove a check for resource ID in the resource fork driver.

@ -507,15 +507,15 @@
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
*is_blue = FALSE;
if ( *is_blue )
*blue_offset = seg->edge->blue_edge->cur;
*blue_offset = seg->edge->blue_edge->org;
else
*blue_offset = 0;

Loading…
Cancel
Save