* src/cid/cidriver.c (cid_get_postscript_name): fixed a bug that

caused the CID driver to return Postscript font names with a leading
        slash ("/") as in "/MOEKai-Regular"
This commit is contained in:
David Turner 2002-03-05 15:57:45 +00:00
parent e826d8753b
commit 57cd33e0d3
2 changed files with 10 additions and 2 deletions

View File

@ -6,7 +6,10 @@
removing the bug that returned global BBox values in
16.16 fixed format (instead of integer font units).
* src/cid/cidriver.c (cid_get_postscript_name): fixed a bug that
caused the CID driver to return Postscript font names with a leading
slash ("/") as in "/MOEKai-Regular"
2002-03-05 Werner Lemberg <wl@gnu.org>

View File

@ -42,7 +42,12 @@
static const char*
cid_get_postscript_name( CID_Face face )
{
return (const char*)face->cid.cid_font_name;
const char* result = face->cid.cid_font_name;
if ( result && result[0] == '/' )
result ++;
return result;
}