]> git.donarmstrong.com Git - lilypond.git/commitdiff
Allow for spaces in ttf font glyph names. Fixes #1562.
authorJan Nieuwenhuizen <janneke@gnu.org>
Sun, 29 May 2011 09:41:15 +0000 (11:41 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Sun, 29 May 2011 18:04:15 +0000 (20:04 +0200)
Apparently, the Verdana.ttf font that comes with Windows 7 SP1
has glyphs 571 and 571 using names "glyph 571" and "glyph 572", i.e.,
their glyph names contain spaces.  This breaks the PostScript output.

Thanks to Chris Lidell and James Lowe for their help to nail this
bug.

THANKS
lily/ttf.cc

diff --git a/THANKS b/THANKS
index 565a49b2d3e83fd747032ffabc2e1ea5022fe88c..64e2a1f97c395281e8abcb658322a8f9c7133321 100644 (file)
--- a/THANKS
+++ b/THANKS
@@ -38,6 +38,7 @@ Kieren MacMillan
 
 BUG HUNTERS/SUGGESTIONS
 
+Chris Liddell
 Chris Snyder
 David Kastrup
 Karim Haddad
index d0507f773d0d6c285a197d8df70f7ef546b18a4e..4bd6378f27687c7d36ef82a1fb31b9f6624067bb 100644 (file)
@@ -453,7 +453,7 @@ print_trailer (void *out,
 
       if (glyph_name[0])
        {
-         lily_cookie_fprintf (out, "/%s %d def ", glyph_name, i);
+         lily_cookie_fprintf (out, "(%s) cvn %d def ", glyph_name, i);
          output_count ++;
        }
       else