~ubuntu-branches/ubuntu/lucid/xpdf/lucid-updates

« back to all changes in this revision

Viewing changes to xpdf/pdffonts.cc

  • Committer: Bazaar Package Importer
  • Author(s): Andy Price
  • Date: 2007-05-17 22:04:33 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20070517220433-gzcx2lrvllkbl7mr
Tags: 3.02-1ubuntu1
* Merge from Debian unstable (LP: #113365), remaining changes:
  - Added back 09_xpdfrc_manpage.dpatch (LP #71753)
  - Set Ubuntu maintainer

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
//
3
3
// pdffonts.cc
4
4
//
5
 
// Copyright 2001-2003 Glyph & Cog, LLC
 
5
// Copyright 2001-2007 Glyph & Cog, LLC
6
6
//
7
7
//========================================================================
8
8
 
24
24
#include "PDFDoc.h"
25
25
#include "config.h"
26
26
 
 
27
// NB: this must match the definition of GfxFontType in GfxFont.h.
27
28
static char *fontTypeNames[] = {
28
29
  "unknown",
29
30
  "Type 1",
30
31
  "Type 1C",
 
32
  "Type 1C (OT)",
31
33
  "Type 3",
32
34
  "TrueType",
 
35
  "TrueType (OT)",
33
36
  "CID Type 0",
34
37
  "CID Type 0C",
35
 
  "CID TrueType"
 
38
  "CID Type 0C (OT)",
 
39
  "CID TrueType",
 
40
  "CID TrueType (OT)"
36
41
};
37
42
 
38
43
static void scanFonts(Dict *resDict, PDFDoc *doc);
135
140
  }
136
141
 
137
142
  // scan the fonts
138
 
  printf("name                                 type         emb sub uni object ID\n");
139
 
  printf("------------------------------------ ------------ --- --- --- ---------\n");
 
143
  printf("name                                 type              emb sub uni object ID\n");
 
144
  printf("------------------------------------ ----------------- --- --- --- ---------\n");
140
145
  fonts = NULL;
141
146
  fontsLen = fontsSize = 0;
142
147
  for (pg = firstPage; pg <= lastPage; ++pg) {
272
277
  }
273
278
 
274
279
  // print the font info
275
 
  printf("%-36s %-12s %-3s %-3s %-3s",
 
280
  printf("%-36s %-17s %-3s %-3s %-3s",
276
281
         name ? name->getCString() : "[none]",
277
282
         fontTypeNames[font->getType()],
278
283
         emb ? "yes" : "no",