From cffa8b65be09886d56ab61f35187983f11a40ca0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wu=2C=20Chia-I=20=28=E5=90=B3=E4=BD=B3=E4=B8=80=29?= Date: Mon, 27 Feb 2006 11:11:40 +0000 Subject: [PATCH] * src/base/ftobjs.c (FT_Set_Char_Size): Ahh.. forgot to check the case width or height is 0. --- ChangeLog | 5 +++++ src/base/ftobjs.c | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index 664d879da..abf7c3858 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-02-27 Chia-I Wu + + * src/base/ftobjs.c (FT_Set_Char_Size): Ahh.. forgot to check the case + width or height is 0. + 2006-02-27 suzuki toshiya * builds/mac/FreeType.m68k_cfm.make.txt, diff --git a/src/base/ftobjs.c b/src/base/ftobjs.c index ddb21573d..16aac1a5e 100644 --- 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 )