--- ./src/gdevpdff.c.org	2003-01-17 09:49:02.000000000 +0900
+++ ./src/gdevpdff.c	2003-09-01 18:22:42.000000000 +0900
@@ -276,6 +276,12 @@
     const byte *chars = font->font_name.chars;
     uint size = font->font_name.size;
 
+    /* CIDFonts has null string in font_name, key_name is used */
+    if (0 == size) {
+	chars = font->key_name.chars;
+	size = font->key_name.size;
+    }
     /*
      * The behavior of Acrobat Distiller changed between 3.0 (PDF 1.2),
      * which will never embed the base 14 fonts, and 4.0 (PDF 1.3), which
