[poppler] poppler/poppler: FontInfo.cc,1.2,1.3 FontInfo.h,1.1,1.2
Albert Astals Cid
aacid at freedesktop.org
Tue Jun 28 15:49:17 PDT 2005
Update of /cvs/poppler/poppler/poppler
In directory gabe:/tmp/cvs-serv8132/poppler
Modified Files:
FontInfo.cc FontInfo.h
Log Message:
Add FontInfo::getType()
Index: FontInfo.cc
===================================================================
RCS file: /cvs/poppler/poppler/poppler/FontInfo.cc,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- FontInfo.cc 20 Jun 2005 17:38:29 -0000 1.2
+++ FontInfo.cc 28 Jun 2005 22:49:15 -0000 1.3
@@ -162,6 +162,9 @@
} else {
name = NULL;
}
+
+ // font type
+ type = new GooString(fontTypeNames[font->getType()]);
// check for an embedded font
if (font->getType() == fontType3) {
@@ -201,4 +204,5 @@
FontInfo::~FontInfo() {
delete name;
+ delete type;
}
Index: FontInfo.h
===================================================================
RCS file: /cvs/poppler/poppler/poppler/FontInfo.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- FontInfo.h 13 Jun 2005 17:18:32 -0000 1.1
+++ FontInfo.h 28 Jun 2005 22:49:15 -0000 1.2
@@ -15,12 +15,14 @@
~FontInfo();
GooString *getName() { return name; };
+ GooString *getType() { return type; };
GBool getEmbedded() { return emb; };
GBool getSubset() { return subset; };
GBool getToUnicode() { return hasToUnicode; };
private:
GooString *name;
+ GooString *type;
GBool emb;
GBool subset;
GBool hasToUnicode;
More information about the poppler
mailing list