-{"Times-Roman", "n021003l.pfb"},
-{"Times-Italic", "n021023l.pfb"},
-{"Times-Bold", "n021004l.pfb"},
-{"Times-BoldItalic", "n021024l.pfb"},
-{"Helvetica", "n019003l.pfb"},
-{"Helvetica-Oblique", "n019023l.pfb"},
-{"Helvetica-Bold", "n019004l.pfb"},
-{"Helvetica-BoldOblique", "n019024l.pfb"},
-{"Courier", "n022003l.pfb"},
-{"Courier-Oblique", "n022023l.pfb"},
-{"Courier-Bold", "n022004l.pfb"},
-{"Courier-BoldOblique", "n022024l.pfb"},
-{"Symbol", "s050000l.pfb"},
-{"ZapfDingbats", "d050000l.pfb"}};
-
-static void printInfoString(Dict *infoDict, char *key, char *fmt) {
- Object obj;
- GString *s1, *s2;
- int i;
-
- if (infoDict->lookup(key, &obj)->isString()) {
- s1 = obj.getString();
- if ((s1->getChar(0) & 0xff) == 0xfe &&
- (s1->getChar(1) & 0xff) == 0xff) {
- s2 = new GString();
- for (i = 2; i < obj.getString()->getLength(); i += 2) {
- if (s1->getChar(i) == '\0') {
- s2->append(s1->getChar(i+1));
- } else {
- delete s2;
- s2 = new GString("<unicode>");
- break;
- }
- }
- printf(fmt, s2->getCString());
- delete s2;
- } else {
- printf(fmt, s1->getCString());
- }
- }
- obj.free();
-}
-
-static void printInfoDate(Dict *infoDict, char *key, char *fmt) {
- Object obj;
- char *s;
-
- if (infoDict->lookup(key, &obj)->isString()) {
- s = obj.getString()->getCString();
- if (s[0] == 'D' && s[1] == ':') {
- s += 2;
- }
- printf(fmt, s);
- }
- obj.free();
-}
+{"Times-Roman", "n021003l"},
+{"Times-Italic", "n021023l"},
+{"Times-Bold", "n021004l"},
+{"Times-BoldItalic", "n021024l"},
+{"Helvetica", "n019003l"},
+{"Helvetica-Oblique", "n019023l"},
+{"Helvetica-Bold", "n019004l"},
+{"Helvetica-BoldOblique", "n019024l"},
+{"Courier", "n022003l"},
+{"Courier-Oblique", "n022023l"},
+{"Courier-Bold", "n022004l"},
+{"Courier-BoldOblique", "n022024l"},
+{"Symbol", "s050000l"},
+{"ZapfDingbats", "d050000l"}};