[autofit] Improve communication with ftgrid.

* src/autofit/afhints.c (af_glyph_hints_get_segment_offset):
Provide values in font units.
This commit is contained in:
Werner Lemberg 2017-09-09 08:08:47 +02:00
parent e2e56f9dd5
commit 0ab2b62d3f
2 changed files with 10 additions and 3 deletions

View File

@ -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.

View File

@ -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;