From 5f5f3dacb7a44cdacf58de74d82cd022dbdf6033 Mon Sep 17 00:00:00 2001 From: worldmozara Date: Sun, 28 Apr 2024 19:18:15 +0800 Subject: [PATCH 1/2] fix wrong field in FT_Data --- freetype/ft_structs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freetype/ft_structs.py b/freetype/ft_structs.py index 606cc70..93efdca 100644 --- a/freetype/ft_structs.py +++ b/freetype/ft_structs.py @@ -244,7 +244,7 @@ class FT_Data(Structure): length: The length of the data in bytes. ''' _fields_ = [('pointer', POINTER(FT_Byte)), - ('y', FT_Int)] + ('length', FT_Int)] From 2395897ae121efcce8769f4a8f60036bdc08e1ba Mon Sep 17 00:00:00 2001 From: worldmozara Date: Thu, 9 May 2024 18:20:02 +0800 Subject: [PATCH 2/2] fix a typo 'restrype' --- freetype/raw.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freetype/raw.py b/freetype/raw.py index 8a55c97..a07984a 100644 --- a/freetype/raw.py +++ b/freetype/raw.py @@ -241,7 +241,7 @@ def FT_Library_SetLcdFilter (*args, **kwargs): FT_Get_Color_Glyph_Layer.restype = FT_Bool FT_Get_Color_Glyph_Layer.argtypes = [FT_Face, FT_UInt, POINTER(FT_UInt), POINTER(FT_UInt), POINTER(FT_LayerIterator)] FT_Get_Color_Glyph_Paint = _lib.FT_Get_Color_Glyph_Paint # 2.13 - FT_Get_Color_Glyph_Paint.restrype = FT_Bool + FT_Get_Color_Glyph_Paint.restype = FT_Bool FT_Get_Color_Glyph_Paint.argtypes = [FT_Face, FT_UInt, FT_UInt, # FT_Color_Root_Transform enums POINTER(FT_OpaquePaint)]