[prev in list] [next in list] [prev in thread] [next in thread]
List: freetype-devel
Subject: [Devel] include/freetype/freetype.h checkin on 2003-06-19 broke =?iso-8859-9?q?fontconfig=0A=0A?=
From: "ismail (cartman) donmez" <voidcartman () yahoo ! com>
Date: 2003-06-30 17:28:47
[Download RAW message or body]
Hi all,
For like a more than a week with freetype cvs fontconfig is no longer to use
freetype fonts. Weird thing is it can cache truetype fonts and *cant* cache
pcf.gz fonts and Qt/GTK+ apps are only be able to use pcf.gz fonts and not
truetype fonts.
So I did a bit cvs revert and noticed that include/freetype/freetype.h on
2003-06-19 broke fontconfig. I attached exact patch which broke fontconfig. I
reverted this patch on latest cvs and all fonts work and fontconfig can cache
all fonts.
Please note that I recompiled fontconfig against freetype-cvs but that did not
fix the problem.
P.S: I CC'ed Fontconfig list because fontconfig may need to be fixed ( maybe )
Regards,
/ismail
--
An Eye for an Eye will make the whole world blind - Gandhi
["freetype.patch" (text/x-diff)]
--- freetype.h 2003-06-30 19:17:16.000000000 +0300
+++ freetype.h.new 2003-06-30 19:17:44.000000000 +0300
@@ -113,7 +113,6 @@
/* FT_New_Memory_Face */
/* FT_Open_Face */
/* FT_Open_Args */
- /* FT_Open_Flags */
/* FT_Parameter */
/* FT_Attach_File */
/* FT_Attach_Stream */
@@ -126,6 +125,12 @@
/* FT_Get_Name_Index */
/* FT_Load_Char */
/* */
+ /* FT_OPEN_MEMORY */
+ /* FT_OPEN_STREAM */
+ /* FT_OPEN_PATHNAME */
+ /* FT_OPEN_DRIVER */
+ /* FT_OPEN_PARAMS */
+ /* */
/* FT_LOAD_DEFAULT */
/* FT_LOAD_RENDER */
/* FT_LOAD_MONOCHROME */
@@ -1360,7 +1365,6 @@
FT_Library library;
FT_Face face;
FT_GlyphSlot next;
- FT_UInt flags;
FT_Generic generic;
FT_Glyph_Metrics metrics;
@@ -1475,13 +1479,13 @@
/*************************************************************************/
/* */
/* <Enum> */
- /* FT_Open_Flags */
+ /* FT_OPEN_XXX */
/* */
/* <Description> */
- /* An enumeration used to list the bit flags used within the */
- /* `flags' field of the @FT_Open_Args structure. */
+ /* A list of bit-field constants used within the `flags' field of the */
+ /* @FT_Open_Args structure. */
/* */
- /* <Fields> */
+ /* <Values> */
/* FT_OPEN_MEMORY :: This is a memory-based stream. */
/* */
/* FT_OPEN_STREAM :: Copy the stream from the `stream' field. */
@@ -1507,15 +1511,11 @@
/* The `FT_OPEN_MEMORY', `FT_OPEN_STREAM', and `FT_OPEN_PATHNAME' */
/* flags are mutually exclusive. */
/* */
- typedef enum
- {
- FT_OPEN_MEMORY = 1,
- FT_OPEN_STREAM = 2,
- FT_OPEN_PATHNAME = 4,
- FT_OPEN_DRIVER = 8,
- FT_OPEN_PARAMS = 16
-
- } FT_Open_Flags;
+#define FT_OPEN_MEMORY 0x1
+#define FT_OPEN_STREAM 0x2
+#define FT_OPEN_PATHNAME 0x4
+#define FT_OPEN_DRIVER 0x8
+#define FT_OPEN_PARAMS 0x10
#define ft_open_memory FT_OPEN_MEMORY /* deprecated */
#define ft_open_stream FT_OPEN_STREAM /* deprecated */
@@ -1603,14 +1603,14 @@
/* */
typedef struct FT_Open_Args_
{
- FT_Open_Flags flags;
- const FT_Byte* memory_base;
- FT_Long memory_size;
- FT_String* pathname;
- FT_Stream stream;
- FT_Module driver;
- FT_Int num_params;
- FT_Parameter* params;
+ FT_UInt flags;
+ const FT_Byte* memory_base;
+ FT_Long memory_size;
+ FT_String* pathname;
+ FT_Stream stream;
+ FT_Module driver;
+ FT_Int num_params;
+ FT_Parameter* params;
} FT_Open_Args;
_______________________________________________
Devel mailing list
Devel@freetype.org
http://www.freetype.org/mailman/listinfo/devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic