From 0ab2b62d3fa6b3c5a50ece8b322bf21cc0e38d52 Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Sat, 9 Sep 2017 08:08:47 +0200 Subject: [PATCH] [autofit] Improve communication with ftgrid. * src/autofit/afhints.c (af_glyph_hints_get_segment_offset): Provide values in font units. --- ChangeLog | 7 +++++++ src/autofit/afhints.c | 6 +++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index cdeb6b604..d6ba1c897 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2017-09-09 Werner Lemberg + + [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 [base] Remove a check for resource ID in the resource fork driver. diff --git a/src/autofit/afhints.c b/src/autofit/afhints.c index f1ff0baef..1b21c06c2 100644 --- a/src/autofit/afhints.c +++ b/src/autofit/afhints.c @@ -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;