ref: fa0c8a70f63aadfc181b64f43bc5838ef29da335
parent: 7d0f0bafab43891e73db3557b5d9ca48602afde7
author: David Turner <[email protected]>
date: Tue Mar 5 10:57:45 EST 2002
* 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"
--- 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 <[email protected]>
--- 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;
}