freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FT2: some patches


From: Just van Rossum
Subject: FT2: some patches
Date: Sat, 26 Feb 2000 19:07:42 +0100

Ok, I delved into the deep, and have actually been able to fix a couple of 
things. (I hope that the current CVS version isn't a lot behind David's 
personal copy ;-)

Here's what I did.

t1afm.h:
- swapped T1_Read_AFM() args
t1afm.c:
- fixed temp glyphname copy
- a few fixes in afm_atoi()’ and an enhancement: it now recognizes negative 
numbers

I also updated two config/ansi files.

Just



cvs -z9 -q diff t1afm.h t1afm.c (in directory DevDev:PyPy:freetype2:src:type1:)
Index: t1afm.h
===================================================================
RCS file: /cvsroot/freetype2/src/type1/t1afm.h,v
retrieving revision 1.1
diff -r1.1 t1afm.h
34,35c34,35
< FT_Error  T1_Read_AFM( FT_Stream stream,
<                        FT_Face   face );
---
> FT_Error  T1_Read_AFM( FT_Face   face,
>                        FT_Stream stream );
Index: t1afm.c
===================================================================
RCS file: /cvsroot/freetype2/src/type1/t1afm.c,v
retrieving revision 1.3
diff -r1.3 t1afm.c
50c50
<       MEM_Copy( temp, start, len );
---
>       MEM_Copy( temp, *start, len );
52c52
<       
---
> 
56c56
<         char*  gname = (char*)type1->glyph_names;
---
>         char*  gname = (char*)type1->glyph_names[n];
75a76
>     int       sign = 1;
78a80,82
>     {
>       if (*p == '-')
>           sign = -1;
80,81c84,85
<     
<     while ( p < limit && (*p >= '0' || *p < '9') )
---
>     }
>     while ( p < limit && (*p >= '0' && *p < '9') )
87c91
<     return sum;
---
>     return sum * sign;
111,112c115,116
<   FT_Error  T1_Read_AFM( FT_Stream stream,
<                          FT_Face   t1_face )
---
>   FT_Error  T1_Read_AFM( FT_Face   t1_face,
>                          FT_Stream stream )
124c128
<     if ( !ACCESS_Frame(stream->size) )
---
>     if ( ACCESS_Frame(stream->size) )







cvs -z9 -q diff ftoption.h ftmodule.h (in directory 
DevDev:PyPy:freetype2:config:ansi:)
Index: ftoption.h
===================================================================
RCS file: /cvsroot/freetype2/config/ansi/ftoption.h,v
retrieving revision 1.1.1.1
diff -r1.1.1.1 ftoption.h
33a34,75
>   /* Glyph Postscript Names handling                                       */
>   /*                                                                       */
>   /*   By default, FreeType 2 is built with the "psnames" module compiled  */
>   /*   in. This module is in charge of converting a glyph name string into */
>   /*   a Unicode value, or return a Macintosh standard glyph name for the  */
>   /*   use with the TrueType "post" table.                                 */
>   /*                                                                       */
>   /*   Undefine this macro if you do not want the "psnames" compiled in    */
>   /*   your build of FreeType. This has the following effects :            */
>   /*                                                                       */
>   /*   - the TrueType driver will provide its own set of glyph names,      */
>   /*     if you build it to support postscript names in the TrueType       */
>   /*     "post" table.                                                     */
>   /*                                                                       */
>   /*   - the Type 1 driver will not be able to synthetize a                */
>   /*     Unicode charmap out of the glyphs found in the fonts.             */
>   /*                                                                       */
>   /*   You would normally undefine this configuration macro when           */
>   /*   building a version of FreeType that doesn't contain a Type 1        */
>   /*   or CFF driver.                                                      */
>   /*                                                                       */
> #define FT_CONFIG_OPTION_POSTSCRIPT_NAMES
> 
>   /*************************************************************************/
>   /*                                                                       */
>   /* Postscript Names to Unicode Values support                            */
>   /*                                                                       */
>   /*   By default, FreeType 2 is built with the "psnames" module compiled  */
>   /*   in. Among other things, the module is used to convert a glyph       */
>   /*   name into a unicode value. This is especially useful in order to    */
>   /*   synthetize on the fly a Unicode charmap from the CFF/Type 1 driver  */
>   /*   through a big table named the "Adobe Glyph List".                   */
>   /*                                                                       */
>   /*   Undefine this macro if you do not want the Adobe Glyph List         */
>   /*   compiled in your "psnames" module. The Type 1 driver will not       */
>   /*   be able to synthetize a Unicode charmap out of the glyphs found     */
>   /*   in the fonts..                                                      */
>   /*                                                                       */
> #define FT_CONFIG_OPTION_ADOBE_GLYPH_LIST
> 
>   /*************************************************************************/
>   /*                                                                       */
Index: ftmodule.h
===================================================================
RCS file: /cvsroot/freetype2/config/ansi/ftmodule.h,v
retrieving revision 1.1
diff -r1.1 ftmodule.h
3a4
> FT_DRIVER(psnames_driver_interface)







reply via email to

[Prev in Thread] Current Thread [Next in Thread]