Commit c78df1ef6ead341ee753f1d3239f71f101292cff

Werner Lemberg 2004-04-21T07:36:38

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

diff --git a/ChangeLog b/ChangeLog
index 72f977b..7e17d65 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2004-04-20  Werner Lemberg  <wl@gnu.org>
+
+	* src/psaux/psobjs.c (T1Radix): Renamed to...
+	(ps_radix): This.
+	Update current cursor position.
+
+	* docs/CHANGES: Updated.
+
 2004-04-18  Werner Lemberg  <wl@gnu.org>
 
 	* src/truetype/ttgload.c, src/truetype/ttgload.h (TT_Load_Glyph),
diff --git a/docs/CHANGES b/docs/CHANGES
index 6f787b0..2bb57b5 100644
--- a/docs/CHANGES
+++ b/docs/CHANGES
@@ -16,13 +16,15 @@ LATEST CHANGES BETWEEN 2.1.8 and 2.1.7
       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 @@ LATEST CHANGES BETWEEN 2.1.8 and 2.1.7
     - 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.
diff --git a/src/psaux/psobjs.c b/src/psaux/psobjs.c
index a0c1230..accaf29 100644
--- 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;
       }