ref: 5a902ec20f3b0817c87f6761c830f29711e4df33
parent: 27f6a05ed51e5dac27fcfd91170e4d5f296dfed1
author: David Turner <[email protected]>
date: Thu Feb 7 11:59:38 EST 2002
* src/pcf/pcfread.c (pcf_load_font): removed immature support of the AVERAGE_WIDTH property..
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-02-07 David Turner <[email protected]>
+
+ * src/pcf/pcfread.c (pcf_load_font): removed immature support of
+ the AVERAGE_WIDTH property..
+
2002-02-06 David Turner <[email protected]>
* src/sfnt/sfobjs.c (SFNT_Load_Face): since many fonts embedded in
--- a/src/pcf/pcfread.c
+++ b/src/pcf/pcfread.c
@@ -972,10 +972,12 @@
{
root->available_sizes->height =
root->available_sizes->width = (FT_Short)( prop->value.integer );
-
+
+#if 0 /* average width property support removed until maturation */
prop = pcf_find_property( face, "AVERAGE_WIDTH" );
if ( prop != NULL )
root->available_sizes->width = (FT_Short)( prop->value.integer / 10 );
+#endif
size_set = 1;
}
@@ -991,16 +993,18 @@
yres = pcf_find_property( face, "RESOLUTION_Y" );
avgw = pcf_find_property( face, "AVERAGE_WIDTH" );
- if ( ( yres != NULL ) && ( ( xres != NULL ) || ( avgw == NULL ) ) )
+ if ( ( yres != NULL ) && ( xres != NULL ) )
{
root->available_sizes->height =
(FT_Short)( prop->value.integer *
yres->value.integer / 720 );
+#if 0 /* average width property support removed until maturation */
if ( avgw != NULL )
root->available_sizes->width =
(FT_Short)( avgw->value.integer / 10 );
else
+#endif
root->available_sizes->width =
(FT_Short)( prop->value.integer *
xres->value.integer / 720 );