20#ifndef INCLUDED_VCL_INC_FONTSUBSET_HXX
21#define INCLUDED_VCL_INC_FONTSUBSET_HXX
23#include <rtl/ustring.hxx>
31namespace vcl {
class TrueTypeFont; }
50class VCL_DLLPUBLIC FontSubsetInfo final
53 explicit FontSubsetInfo();
56 void LoadFont( FontType eInFontType,
57 const unsigned char* pFontBytes, int nByteLength );
58 void LoadFont( vcl::TrueTypeFont* pSftTrueTypeFont );
60 bool CreateFontSubset( FontType nOutFontTypeMask,
61 SvStream* pOutFile, const char* pOutFontName,
62 const sal_GlyphId* pGlyphIds, const sal_uInt8* pEncodedIds,
71 tools::Rectangle m_aFontBBox;
77 unsigned const char* mpInFontBytes;
79 FontType meInFontType;
80 vcl::TrueTypeFont* mpSftTTFont;
83 FontType mnReqFontTypeMask;
85 const char* mpReqFontName;
86 const sal_GlyphId* mpReqGlyphIds;
87 const sal_uInt8* mpReqEncodedIds;
90 bool CreateFontSubsetFromCff();
91 bool CreateFontSubsetFromSfnt();
94int VCL_DLLPUBLIC TestFontSubset(const void* data, sal_uInt32 size);
@ TYPE1_PFB
PSType1 Postscript Font Binary.
@ CFF_FONT
CFF-container with PSType2 glyphs.
@ TYPE1_PFA
PSType1 Postscript Font Ascii.
@ TYPE3_FONT
PSType3 Postscript font.
@ TYPE42_FONT
PSType42 wrapper for an SFNT_TTF.
@ SFNT_CFF
SFNT container with CFF-container.
@ SFNT_TTF
SFNT container with TrueType glyphs.