[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ft] Bug Report: FT_Get_PS_Font_Info used without type1
From: |
Mickey Gabel |
Subject: |
[ft] Bug Report: FT_Get_PS_Font_Info used without type1 |
Date: |
Wed, 21 Jan 2009 15:52:17 +0200 |
User-agent: |
Thunderbird 2.0.0.19 (Windows/20081209) |
(I am filing this bug like this because there seems to be something
wrong with the bug server's certificate)
abstract
--------
FT 2.3.8 seems to link to FT_Get_PS_Font_Info() even when type1 fonts
are not compiled in.
details
-------
In version 2.3.8, the following code was added to base/ftobjs.c:
FT_EXPORT_DEF( FT_UShort )
FT_Get_FSType_Flags( FT_Face face )
{
PS_FontInfoRec font_info;
TT_OS2* os2;
/* look at FSType before fsType for Type42 */
if ( !FT_Get_PS_Font_Info( face, &font_info ) &&
font_info.fs_type != 0 )
return font_info.fs_type;
if ( ( os2 = (TT_OS2*)FT_Get_Sfnt_Table( face, ft_sfnt_os2 ) ) !=
NULL &&
os2->version != 0xFFFFU
)
return os2->fsType;
return 0;
}
Note the use of FT_Get_PS_Font_Info(), which is not qualified by an #ifdef.
FT_Get_PS_Font_Info() is defined in base/fttype1.c which is optional
(according to INSTALL.ANY file).
For the record, I noticed this as a link error when upgrading from
2.3.7, my custom build does not include the t1 driver, or any t1 support.
In my custom build, I simply removed FT_Get_FSType_Flags(), but
obviously this is not a good idea for everyone.
Regards,
Mickey Gabel
- [ft] Bug Report: FT_Get_PS_Font_Info used without type1,
Mickey Gabel <=