![]() System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /usr/share/emscripten/tests/poppler/poppler/ |
Upload File : |
//======================================================================== // // FontInfo.h // // Copyright (C) 2005 Kristian Høgsberg <krh@redhat.com> // Copyright (C) 2005-2008, 2010 Albert Astals Cid <aacid@kde.org> // Copyright (C) 2005 Brad Hards <bradh@frogmouth.net> // Copyright (C) 2009 Pino Toscano <pino@kde.org> // // To see a description of the changes please see the Changelog file that // came with your tarball or type make ChangeLog if you are building from git // //======================================================================== //======================================================================== // // Based on code from pdffonts.cc // // Copyright 2001-2007 Glyph & Cog, LLC // //======================================================================== #ifndef FONT_INFO_H #define FONT_INFO_H #include "goo/gtypes.h" #include "goo/GooList.h" class FontInfo { public: enum Type { unknown, Type1, Type1C, Type1COT, Type3, TrueType, TrueTypeOT, CIDType0, CIDType0C, CIDType0COT, CIDTrueType, CIDTrueTypeOT }; // Constructor. FontInfo(GfxFont *fontA, PDFDoc *doc); // Copy constructor FontInfo(FontInfo& f); // Destructor. ~FontInfo(); GooString *getName() { return name; }; GooString *getFile() { return file; }; Type getType() { return type; }; GBool getEmbedded() { return emb; }; GBool getSubset() { return subset; }; GBool getToUnicode() { return hasToUnicode; }; Ref getRef() { return fontRef; }; Ref getEmbRef() { return embRef; }; private: GooString *name; GooString *file; Type type; GBool emb; GBool subset; GBool hasToUnicode; Ref fontRef; Ref embRef; }; class FontInfoScanner { public: // Constructor. FontInfoScanner(PDFDoc *doc, int firstPage = 0); // Destructor. ~FontInfoScanner(); GooList *scan(int nPages); private: PDFDoc *doc; int currentPage; std::set<int> fonts; std::set<int> visitedObjects; void scanFonts(Dict *resDict, GooList *fontsList); }; #endif