20 #ifndef INCLUDED_VCL_INC_FONTSUBSET_HXX
21 #define INCLUDED_VCL_INC_FONTSUBSET_HXX
23 #include <rtl/ustring.hxx>
31 namespace vcl {
class TrueTypeFont; }
49 class VCL_DLLPUBLIC FontSubsetInfo final
52 explicit FontSubsetInfo();
55 void LoadFont( FontType eInFontType,
56 const unsigned char* pFontBytes, int nByteLength );
57 void LoadFont( vcl::TrueTypeFont* pSftTrueTypeFont );
59 bool CreateFontSubset( FontType nOutFontTypeMask,
60 FILE* pOutFile, const char* pOutFontName,
61 const sal_GlyphId* pGlyphIds, const sal_uInt8* pEncodedIds,
62 int nReqGlyphCount, sal_Int32* pOutGlyphWidths = nullptr );
70 tools::Rectangle m_aFontBBox;
75 unsigned const char* mpInFontBytes;
77 FontType meInFontType;
78 vcl::TrueTypeFont* mpSftTTFont;
81 FontType mnReqFontTypeMask;
83 const char* mpReqFontName;
84 const sal_GlyphId* mpReqGlyphIds;
85 const sal_uInt8* mpReqEncodedIds;
88 bool CreateFontSubsetFromCff( sal_Int32* pOutGlyphWidths );
89 bool CreateFontSubsetFromSfnt( sal_Int32* pOutGlyphWidths );
90 static bool CreateFontSubsetFromType1( const sal_Int32* pOutGlyphWidths );
93 int VCL_DLLPUBLIC TestFontSubset(const void* data, sal_uInt32 size);
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.