shithub: freetype+ttf2subf

Download patch

ref: c78df1ef6ead341ee753f1d3239f71f101292cff
parent: c3dc56b85c96193a9c06829e5ac319c46cf356ce
author: Werner Lemberg <[email protected]>
date: Wed Apr 21 03:36:38 EDT 2004

* src/psaux/psobjs.c (T1Radix): Renamed to...
(ps_radix): This.
Update current cursor position.

* docs/CHANGES: Updated.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2004-04-20  Werner Lemberg  <[email protected]>
+
+	* src/psaux/psobjs.c (T1Radix): Renamed to...
+	(ps_radix): This.
+	Update current cursor position.
+
+	* docs/CHANGES: Updated.
+
 2004-04-18  Werner Lemberg  <[email protected]>
 
 	* src/truetype/ttgload.c, src/truetype/ttgload.h (TT_Load_Glyph),
--- a/docs/CHANGES
+++ b/docs/CHANGES
@@ -16,13 +16,15 @@
       correctly  treated as a  CID, similar  to FreeType's  CID driver
       module.  Note that CID CMap support is still missing.
 
-    - The FT_FACE_FLAGS_GLYPH_NAMES is now  set correctly for all font
-      formats.
+    - The FT_FACE_FLAGS_GLYPH_NAMES flag is now  set correctly for all
+      font formats.
 
     - Some subsetted Type 1  fonts weren't parsed correctly.  This bug
       has been introduced in 2.1.7.  In summary, the Type 1 parser has
       become more robust.
 
+    - Non-decimal numbers weren't parsed correctly in PS fonts.
+
     - The WinFNT driver now correctly reports FT_ENCODING_NONE for all
       but one encoding.  Use  the new FT_WinFNT_ID_XXX values together
       with FT_Get_WinFNT_Header() to get the WinFNT charset ID.
@@ -30,9 +32,9 @@
     - The descender metrics (face->size->metrics.descender) for WinFNT
       bitmap fonts had the wrong sign.
 
-    - The (emulated) seac support for CFF fonts was broken.
+    - The (emulated) `seac' support for CFF fonts was broken.
 
-    - The flex operator didn't work for CFF fonts.
+    - The `flex' operator didn't work for CFF fonts.
 
     - PS glyphs  which  use  the   `hintmask'  operator  haven't  been
       rendered correctly in some cases.
--- a/src/psaux/psobjs.c
+++ b/src/psaux/psobjs.c
@@ -688,9 +688,9 @@
   /* first character must be already part of the number */
 
   static FT_Long
-  T1Radix( FT_Long    radixBase,
-           FT_Byte*  *acur,
-           FT_Byte*   limit )
+  ps_radix( FT_Long    radixBase,
+            FT_Byte*  *acur,
+            FT_Byte*   limit )
   {
     FT_Long   result = 0;
     FT_Byte*  cur    = *acur;
@@ -716,6 +716,8 @@
       cur++;
     }
 
+    *acur = cur;
+
     return result;
   }
 
@@ -746,7 +748,7 @@
       if ( *cur == '#' )
       {
         cur++;
-        result = T1Radix( result, &cur, limit );
+        result = ps_radix( result, &cur, limit );
         break;
       }