freetype-commit
[Top][All Lists]
Advanced

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

[freetype2] master 9ed5332 2/2: [truetype] Fix CVAR handling of tuples f


From: Werner Lemberg
Subject: [freetype2] master 9ed5332 2/2: [truetype] Fix CVAR handling of tuples for all points.
Date: Thu, 4 Nov 2021 08:24:18 -0400 (EDT)

branch: master
commit 9ed5332fe632ada7de8fd345c9ef579b678c4042
Author: Jany Belluz <jany.belluz@daltonmaag.com>
Commit: Werner Lemberg <wl@gnu.org>

    [truetype] Fix CVAR handling of tuples for all points.
    
    * src/truetype/ttgxvar (tt_face_vary_cvt): Function
    `ft_var_readpackedpoints`, when it returns `ALL_POINTS`, also sets
    `point_count` to value 0.  However, the CVAR code was incorrectly expecting
    that `point_count` would be set to match the length of the CVT table.
---
 src/truetype/ttgxvar.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/truetype/ttgxvar.c b/src/truetype/ttgxvar.c
index f3f8303..e4da810 100644
--- a/src/truetype/ttgxvar.c
+++ b/src/truetype/ttgxvar.c
@@ -3416,9 +3416,7 @@
                                         point_count == 0 ? face->cvt_size
                                                          : point_count );
 
-      if ( !points                                                        ||
-           !deltas                                                        ||
-           ( localpoints == ALL_POINTS && point_count != face->cvt_size ) )
+      if ( !points || !deltas )
         ; /* failure, ignore it */
 
       else if ( localpoints == ALL_POINTS )



reply via email to

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