shithub: freetype+ttf2subf

Download patch

ref: 7d364b7e51982ebe926c4148c752e0758c4dd2ed
parent: c838c4f7b50e20010e6a014b8f92fdc080950184
author: Werner Lemberg <[email protected]>
date: Thu Sep 17 12:31:58 EDT 2015

[psaux] Improve tracing message.

* src/psaux/psobjs.c (ps_parser_load_field) <T1_FIELD_TYPE_MM_BBOX>:
Handle plural correctly.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2015-09-17  Werner Lemberg  <[email protected]>
 
+	[psaux] Improve tracing message.
+
+	* src/psaux/psobjs.c (ps_parser_load_field) <T1_FIELD_TYPE_MM_BBOX>:
+	Handle plural correctly.
+
+2015-09-17  Werner Lemberg  <[email protected]>
+
 	[pcf] Fix integer overflows (#45985).
 
 	* src/pcf/pcfread.c (pcf_load_font): Use FT_MulDiv.
--- a/src/psaux/psobjs.c
+++ b/src/psaux/psobjs.c
@@ -1232,10 +1232,10 @@
             if ( result < 0 || (FT_UInt)result < max_objects )
             {
               FT_ERROR(( "ps_parser_load_field:"
-                         " expected %d integers in the %s subarray\n"
+                         " expected %d integer%s in the %s subarray\n"
                          "                     "
                          " of /FontBBox in the /Blend dictionary\n",
-                         max_objects,
+                         max_objects, max_objects > 1 ? "s" : "",
                          i == 0 ? "first"
                                 : ( i == 1 ? "second"
                                            : ( i == 2 ? "third"