freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[freetype2] master 649352ab7 1/2: [sfnt] Fix typo in clip box computatio


From: Werner Lemberg
Subject: [freetype2] master 649352ab7 1/2: [sfnt] Fix typo in clip box computation.
Date: Sat, 30 Jul 2022 09:26:44 -0400 (EDT)

branch: master
commit 649352ab7370c4d7c3dbbe12cf6768681422ac39
Author: Dominik Röttsches <drott@chromium.org>
Commit: Werner Lemberg <wl@gnu.org>

    [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`.
---
 src/sfnt/ttcolr.c | 5 +++--
 1 file 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    */



reply via email to

[Prev in Thread] Current Thread [Next in Thread]