[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Freetype] FTC_ImageType : definition change
From: |
Jungshik Shin |
Subject: |
[Freetype] FTC_ImageType : definition change |
Date: |
Mon, 5 Jul 2004 18:23:48 +0900 (KST) |
Hi,
I realized that the definition of FTC_ImageType(Rec) had changed last
December (between 2.1.5 and 2.1.6). Before the change [1], it was defined
as
typedef struct FTC_ImageTypeRec_
{
FTC_FontRec font;
FT_Int32 flags;
} FTC_ImageTypeRec;
while after the change it's defined as
typedef struct FTC_ImageTypeRec_
{
FTC_FaceID face_id;
FT_Int width;
FT_Int height;
FT_Int32 flags;
} FTC_ImageTypeRec;
This presents a challenge for programs like Mozilla [2]. We can detect the
freetype version at the configuration time to get it compiled
differently depending on the freetype version, but what about the run-time
difference? It'd be nice to know how others worked around this problem
without releasing two binaries (one for freetype 2.1.5 or earlier and
the other for freetype 2.1.6 or later).
TIA,
Jungshik
[1]
http://cvs.freetype.org/cgi-bin/viewcvs.cgi/freetype2/include/freetype/ftcache.h.diff?r1=1.32&r2=1.33
[2] http://bugzilla.mozilla.org/show_bug.cgi?id=234035
- [Freetype] FTC_ImageType : definition change,
Jungshik Shin <=