ref: cffa8b65be09886d56ab61f35187983f11a40ca0
parent: 2f239b8e88ae43f5e77605ca5799f54d52061fcc
author: Wu, Chia-I (吳佳一) <[email protected]>
date: Mon Feb 27 06:11:40 EST 2006
* src/base/ftobjs.c (FT_Set_Char_Size): Ahh.. forgot to check the case width or height is 0.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-02-27 Chia-I Wu <[email protected]>
+
+ * src/base/ftobjs.c (FT_Set_Char_Size): Ahh.. forgot to check the case
+ width or height is 0.
+
2006-02-27 suzuki toshiya <[email protected]>
* builds/mac/FreeType.m68k_cfm.make.txt,
--- a/src/base/ftobjs.c
+++ b/src/base/ftobjs.c
@@ -2382,6 +2382,11 @@
FT_Size_RequestRec req;
+ if ( !char_width )
+ char_width = char_height;
+ else if ( !char_height )
+ char_height = char_width;
+
if ( char_width < 1 * 64 )
char_width = 1 * 64;
if ( char_height < 1 * 64 )