Commit 184292ff authored by Albert Astals Cid's avatar Albert Astals Cid

Make the fontRef and the embRef accessible to FontInfo users

parent 86b7e8a3
......@@ -138,7 +138,6 @@ void FontInfoScanner::scanFonts(Dict *resDict, GooList *fontsList) {
FontInfo::FontInfo(GfxFont *font, PDFDoc *doc) {
GooString *origName;
Ref embRef;
Object fontObj, toUnicodeObj;
int i;
......@@ -203,6 +202,7 @@ FontInfo::FontInfo(FontInfo& f) {
subset = f.subset;
hasToUnicode = f.hasToUnicode;
fontRef = f.fontRef;
embRef = f.embRef;
}
FontInfo::~FontInfo() {
......
......@@ -34,6 +34,8 @@ public:
GBool getEmbedded() { return emb; };
GBool getSubset() { return subset; };
GBool getToUnicode() { return hasToUnicode; };
Ref getRef() { return fontRef; };
Ref getEmbRef() { return embRef; };
private:
GooString *name;
......@@ -43,6 +45,7 @@ private:
GBool subset;
GBool hasToUnicode;
Ref fontRef;
Ref embRef;
};
class FontInfoScanner {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment