the function FTC_Manager_Lookup_Size will return a valid FT_Face handle, even if no size was found..
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
diff --git a/src/cache/ftcmanag.c b/src/cache/ftcmanag.c
index 97630d1..64157e1 100644
--- a/src/cache/ftcmanag.c
+++ b/src/cache/ftcmanag.c
@@ -332,7 +332,6 @@
{
FTC_FontRequest req;
FT_Error error;
- FT_Face face;
/* check for valid `manager' delayed to FTC_Manager_Lookup_Face() */
@@ -343,13 +342,13 @@
if ( asize )
*asize = 0;
- error = FTC_Manager_Lookup_Face( manager, font->face_id, &face );
+ error = FTC_Manager_Lookup_Face( manager, font->face_id, aface );
if ( !error )
{
FT_Size size;
- req.face = face;
+ req.face = *aface;
req.width = font->pix_width;
req.height = font->pix_height;
@@ -363,9 +362,6 @@
if ( asize )
*asize = size;
-
- if ( aface )
- *aface = face;
}
}