20 #ifndef INCLUDED_VCL_INC_FONTSUBSET_HXX
21 #define INCLUDED_VCL_INC_FONTSUBSET_HXX
23 #include <rtl/ustring.hxx>
30 namespace vcl {
class TrueTypeFont; }
48 class VCL_DLLPUBLIC FontSubsetInfo final
51 explicit FontSubsetInfo();
54 void LoadFont( FontType eInFontType,
55 const unsigned char* pFontBytes, int nByteLength );
56 void LoadFont( vcl::TrueTypeFont* pSftTrueTypeFont );
58 bool CreateFontSubset( FontType nOutFontTypeMask,
59 FILE* pOutFile, const char* pOutFontName,
60 const sal_GlyphId* pGlyphIds, const sal_uInt8* pEncodedIds,
61 int nReqGlyphCount, sal_Int32* pOutGlyphWidths = nullptr );
69 tools::Rectangle m_aFontBBox;
74 unsigned const char* mpInFontBytes;
76 FontType meInFontType;
77 vcl::TrueTypeFont* mpSftTTFont;
80 FontType mnReqFontTypeMask;
82 const char* mpReqFontName;
83 const sal_GlyphId* mpReqGlyphIds;
84 const sal_uInt8* mpReqEncodedIds;
87 bool CreateFontSubsetFromCff( sal_Int32* pOutGlyphWidths );
88 bool CreateFontSubsetFromSfnt( sal_Int32* pOutGlyphWidths );
89 static bool CreateFontSubsetFromType1( const sal_Int32* pOutGlyphWidths );
CFF-container with PSType2 glyphs.
SFNT container with CFF-container.
FontType
< SFT's idea of a TTF font
PSType1 Postscript Font Ascii.
SFNT container with TrueType glyphs.
PSType42 wrapper for an SFNT_TTF.
PSType1 Postscript Font Binary.