5 #ifndef PDFTRON_H_CPPPDFFont
6 #define PDFTRON_H_CPPPDFFont
13 #include <C/PDF/TRN_Font.h>
14 #include <C/SDF/TRN_SDFDoc.h>
104 bool embed=
true,
bool subset=
true);
122 bool embed=
true,
bool subset=
true);
151 bool embed =
true,
bool subset =
true,
172 static Font CreateCIDTrueTypeFont2(
SDF::SDFDoc& doc,
const void* logfont,
173 bool embed =
true,
bool subset =
true,
389 Unicode* out_uni_arr,
const int in_uni_sz,
592 #include <Impl/Font.inl>
597 #endif // PDFTRON_H_CPPPDFFont
PathData GetGlyphPath(UInt32 char_code, bool conics2cubics, Common::Matrix2D *transform=0)
std::vector< double > GetVerticalAdvance(UInt32 char_code)
const char * GetFamilyName()
Common::Iterator< UInt32 > GetCharCodeIterator()
static Font CreateCIDTrueTypeFont(SDF::SDFDoc &doc, const UString &font_path, bool embed=true, bool subset=true, Encoding encoding=e_IdentityH, UInt32 ttc_font_index=0)
UString MapToUnicode(UInt32 char_code)
Font & operator=(const Font &c)
static Font CreateType1Font(SDF::SDFDoc &doc, const UString &font_path, bool embed=true)
int GetStandardType1FontType()
static Font CreateTrueTypeFont(SDF::SDFDoc &doc, const UString &font_path, bool embed=true, bool subset=true)
double GetWidth(UInt32 char_code) const
Common::Matrix2D GetType3FontMatrix()
static Font Create(SDF::SDFDoc &doc, StandardType1Font type, bool embed=false)
SDF::Obj GetEmbeddedFont()
UInt32 MapToCID(UInt32 char_code) const
const char * GetEmbeddedFontName()
const char ** GetEncoding()
int GetEmbeddedFontBufSize()
SDF::Obj GetType3GlyphStream(UInt32 char_code)
Font(SDF::Obj font_dict=0)