From 57cd33e0d3e8414dd0c56eb356099fffc449bef7 Mon Sep 17 00:00:00 2001 From: David Turner Date: Tue, 5 Mar 2002 15:57:45 +0000 Subject: [PATCH] * 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" --- ChangeLog | 5 ++++- src/cid/cidriver.c | 7 ++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 23fe537e8..96856a0dc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/src/cid/cidriver.c b/src/cid/cidriver.c index 4d02391e7..204993ac5 100644 --- a/src/cid/cidriver.c +++ b/src/cid/cidriver.c @@ -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; }