From dbe720d6a2e6cbb1e60160c8d04a4d7ac658ac1d Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Sun, 29 May 2011 11:41:15 +0200 Subject: [PATCH] Allow for spaces in ttf font glyph names. Fixes #1562. 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 | 1 + lily/ttf.cc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/THANKS b/THANKS index 565a49b2d3..64e2a1f97c 100644 --- a/THANKS +++ b/THANKS @@ -38,6 +38,7 @@ Kieren MacMillan BUG HUNTERS/SUGGESTIONS +Chris Liddell Chris Snyder David Kastrup Karim Haddad diff --git a/lily/ttf.cc b/lily/ttf.cc index d0507f773d..4bd6378f27 100644 --- a/lily/ttf.cc +++ b/lily/ttf.cc @@ -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 -- 2.39.2