ref: 8292815bb900d16082310b48484ff2fd34991866
parent: 7b0cc663e84a90947d4e63e3e250e1b38b484cdc
author: Werner Lemberg <[email protected]>
date: Mon Jul 7 03:35:15 EDT 2003
* src/bdf/bdfdrivr.c (BDF_Face_Init), src/pcf/pcfread.c (pcf_load_font): Fix computation of height if PIXEL_SIZE property is missing.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2003-07-06 Werner Lemberg <[email protected]>
+
+ * src/bdf/bdfdrivr.c (BDF_Face_Init), src/pcf/pcfread.c
+ (pcf_load_font): Fix computation of height if PIXEL_SIZE property is
+ missing.
+
2003-07-01 Werner Lemberg <[email protected]>
* src/cache/ftcsbits.c (ftc_sbit_node_compare): Only add `size' if
--- a/src/bdf/bdfdrivr.c
+++ b/src/bdf/bdfdrivr.c
@@ -336,8 +336,7 @@
(FT_Pos)( ( prop->value.int32 * bsize->size + 36 ) / 72 );
if ( bsize->height == 0 )
- bsize->height =
- (FT_Short)( ( bsize->size * bsize->y_ppem + 2048 ) / 64 / 64 );
+ bsize->height = (FT_Short)( ( bsize->y_ppem + 32 ) / 64 );
if ( bsize->height == 0 )
{
--- a/src/pcf/pcfread.c
+++ b/src/pcf/pcfread.c
@@ -1014,8 +1014,7 @@
(FT_Pos)( ( prop->value.integer * bsize->size + 36 ) / 72 );
if ( bsize->height == 0 )
- bsize->height =
- (FT_Short)( ( bsize->size * bsize->y_ppem + 2048 ) / 64 / 64 );
+ bsize->height = (FT_Short)( ( bsize->y_ppem + 32 ) / 64 );
if ( bsize->height == 0 )
bsize->height = 12;