summaryrefslogtreecommitdiff
path: root/poppler
diff options
context:
space:
mode:
Diffstat (limited to 'poppler')
-rw-r--r--poppler/FontInfo.cc10
-rw-r--r--poppler/FontInfo.h2
2 files changed, 12 insertions, 0 deletions
diff --git a/poppler/FontInfo.cc b/poppler/FontInfo.cc
index 335ce5ca..d9defa39 100644
--- a/poppler/FontInfo.cc
+++ b/poppler/FontInfo.cc
@@ -152,6 +152,14 @@ FontInfo::FontInfo(GfxFont *font, PDFDoc *doc) {
} else {
name = NULL;
}
+
+ DisplayFontParam *dfp = globalParams->getDisplayFont(font);
+ if (dfp)
+ {
+ if (dfp->kind == displayFontT1) file = dfp->t1.fileName->copy();
+ else file = dfp->tt.fileName->copy();
+ }
+ else file = NULL;
// font type
type = (FontInfo::Type)font->getType();
@@ -186,6 +194,7 @@ FontInfo::FontInfo(GfxFont *font, PDFDoc *doc) {
FontInfo::FontInfo(FontInfo& f) {
name = f.name->copy();
+ file = f.file->copy();
type = f.type;
emb = f.emb;
subset = f.subset;
@@ -195,4 +204,5 @@ FontInfo::FontInfo(FontInfo& f) {
FontInfo::~FontInfo() {
delete name;
+ delete file;
}
diff --git a/poppler/FontInfo.h b/poppler/FontInfo.h
index f2020e85..e58237bb 100644
--- a/poppler/FontInfo.h
+++ b/poppler/FontInfo.h
@@ -25,6 +25,7 @@ public:
~FontInfo();
GooString *getName() { return name; };
+ GooString *getFile() { return file; };
Type getType() { return type; };
GBool getEmbedded() { return emb; };
GBool getSubset() { return subset; };
@@ -32,6 +33,7 @@ public:
private:
GooString *name;
+ GooString *file;
Type type;
GBool emb;
GBool subset;