blob: 1f558250f66d59f1c879d37aa24b09ea360d2eea [file] [log] [blame]
#ifndef FONT_INFO_H
#define FONT_INFO_H
#include "goo/gtypes.h"
#include "goo/GooList.h"
class FontInfo {
public:
// Constructor.
FontInfo(GfxFont *fontA, PDFDoc *doc);
// Copy constructor
FontInfo(FontInfo& f);
// Destructor.
~FontInfo();
GooString *getName() { return name; };
GBool getEmbedded() { return emb; };
GBool getSubset() { return subset; };
GBool getToUnicode() { return hasToUnicode; };
private:
GooString *name;
GBool emb;
GBool subset;
GBool hasToUnicode;
Ref fontRef;
};
class FontInfoScanner {
public:
// Constructor.
FontInfoScanner(PDFDoc *doc);
// Destructor.
~FontInfoScanner();
GooList *scan(int nPages);
private:
PDFDoc *doc;
int currentPage;
Ref *fonts;
int fontsLen;
int fontsSize;
void scanFonts(Dict *resDict, GooList *fontsList);
};
#endif