diff options
author | Dominik Röttsches <drott@chromium.org> | 2022-07-30 12:09:09 +0300 |
---|---|---|
committer | Werner Lemberg <wl@gnu.org> | 2022-07-30 15:10:17 +0200 |
commit | 649352ab7370c4d7c3dbbe12cf6768681422ac39 (patch) | |
tree | b8a05b765542aa5a30b2378ad2fc85a95ca58f0e | |
parent | ee72e285033a943e104f5709cab1ba0c65e54056 (diff) | |
download | freetype2-649352ab7370c4d7c3dbbe12cf6768681422ac39.tar.gz |
[sfnt] Fix typo in clip box computation.
* src/sfnt/ttcolr.c (tt_face_get_color_glyph_clipbox): Use appropriate
scale factor for `yMin` and `yMax`.
-rw-r--r-- | src/sfnt/ttcolr.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sfnt/ttcolr.c b/src/sfnt/ttcolr.c index 3dfd0c14c..9a1e9a301 100644 --- a/src/sfnt/ttcolr.c +++ b/src/sfnt/ttcolr.c @@ -1404,11 +1404,12 @@ font_clip_box.xMin = FT_MulFix( FT_NEXT_SHORT( p1 ), face->root.size->metrics.x_scale ); font_clip_box.yMin = FT_MulFix( FT_NEXT_SHORT( p1 ), - face->root.size->metrics.x_scale ); + face->root.size->metrics.y_scale ); font_clip_box.xMax = FT_MulFix( FT_NEXT_SHORT( p1 ), face->root.size->metrics.x_scale ); font_clip_box.yMax = FT_MulFix( FT_NEXT_SHORT( p1 ), - face->root.size->metrics.x_scale ); + face->root.size->metrics.y_scale ); + /* Make 4 corner points (xMin, yMin), (xMax, yMax) and transform */ /* them. If we we would only transform two corner points and */ |