1 //========================================================================
5 // Copyright (C) 2005 Kristian Høgsberg <krh@redhat.com>
6 // Copyright (C) 2005-2008, 2010, 2011 Albert Astals Cid <aacid@kde.org>
7 // Copyright (C) 2005 Brad Hards <bradh@frogmouth.net>
8 // Copyright (C) 2009 Pino Toscano <pino@kde.org>
9 // Copyright (C) 2012 Adrian Johnson <ajohnson@redneon.com>
10 // Copyright (C) 2013 Thomas Freitag <Thomas.Freitag@alfa.de>
12 // To see a description of the changes please see the Changelog file that
13 // came with your tarball or type make ChangeLog if you are building from git
15 //========================================================================
17 //========================================================================
19 // Based on code from pdffonts.cc
21 // Copyright 2001-2007 Glyph & Cog, LLC
23 //========================================================================
29 #include "goo/gtypes.h"
30 #include "goo/GooList.h"
53 FontInfo(GfxFont
*fontA
, XRef
*xrefA
);
55 FontInfo(FontInfo
& f
);
59 GooString
*getName() { return name
; };
60 GooString
*getSubstituteName() { return substituteName
; };
61 GooString
*getFile() { return file
; };
62 GooString
*getEncoding() { return encoding
; };
63 Type
getType() { return type
; };
64 GBool
getEmbedded() { return emb
; };
65 GBool
getSubset() { return subset
; };
66 GBool
getToUnicode() { return hasToUnicode
; };
67 Ref
getRef() { return fontRef
; };
68 Ref
getEmbRef() { return embRef
; };
72 GooString
*substituteName
;
83 class FontInfoScanner
{
87 FontInfoScanner(PDFDoc
*doc
, int firstPage
= 0);
91 GooList
*scan(int nPages
);
98 std::set
<int> visitedObjects
;
100 void scanFonts(XRef
*xrefA
, Dict
*resDict
, GooList
*fontsList
);