LibreOffice Module vcl (master) 1
|
#include <fontsubset.hxx>
Public Member Functions | |
FontSubsetInfo () | |
~FontSubsetInfo () | |
void | LoadFont (FontType eInFontType, const unsigned char *pFontBytes, int nByteLength) |
void | LoadFont (vcl::TrueTypeFont *pSftTrueTypeFont) |
bool | CreateFontSubset (FontType nOutFontTypeMask, SvStream *pOutFile, const char *pOutFontName, const sal_GlyphId *pGlyphIds, const sal_uInt8 *pEncodedIds, int nReqGlyphCount) |
Public Attributes | |
OUString | m_aPSName |
int | m_nAscent |
all metrics in PS font units More... | |
int | m_nDescent |
int | m_nCapHeight |
tools::Rectangle | m_aFontBBox |
FontType | m_nFontType |
font-type of subset result More... | |
bool | m_bFilled |
Private Member Functions | |
bool | CreateFontSubsetFromCff () |
bool | CreateFontSubsetFromSfnt () |
Private Attributes | |
unsigned const char * | mpInFontBytes |
int | mnInByteLength |
FontType | meInFontType |
allowed mask of input font-types More... | |
vcl::TrueTypeFont * | mpSftTTFont |
FontType | mnReqFontTypeMask |
allowed subset-target font types More... | |
SvStream * | mpOutFile |
const char * | mpReqFontName |
const sal_GlyphId * | mpReqGlyphIds |
const sal_uInt8 * | mpReqEncodedIds |
int | mnReqGlyphCount |
Definition at line 50 of file fontsubset.hxx.
|
explicit |
Definition at line 27 of file fontsubset.cxx.
References NO_FONT.
FontSubsetInfo::~FontSubsetInfo | ( | ) |
Definition at line 46 of file fontsubset.cxx.
bool FontSubsetInfo::CreateFontSubset | ( | FontType | nOutFontTypeMask, |
SvStream * | pOutFile, | ||
const char * | pOutFontName, | ||
const sal_GlyphId * | pGlyphIds, | ||
const sal_uInt8 * | pEncodedIds, | ||
int | nReqGlyphCount | ||
) |
Definition at line 69 of file fontsubset.cxx.
References ANY_SFNT, ANY_TYPE1, CFF_FONT, CreateFontSubsetFromCff(), CreateFontSubsetFromSfnt(), m_aPSName, meInFontType, mnReqFontTypeMask, mnReqGlyphCount, mpOutFile, mpReqEncodedIds, mpReqFontName, mpReqGlyphIds, NO_FONT, SFNT_CFF, SFNT_TTF, TYPE1_PFA, and TYPE1_PFB.
|
private |
Definition at line 2607 of file cff.cxx.
References mnInByteLength, mnReqFontTypeMask, mnReqGlyphCount, mpInFontBytes, mpOutFile, mpReqEncodedIds, mpReqFontName, mpReqGlyphIds, and TYPE1_PFB.
Referenced by CreateFontSubset(), and CreateFontSubsetFromSfnt().
|
private |
Definition at line 114 of file fontsubset.cxx.
References vcl::BadArg, CFF_FONT, CreateFontSubsetFromCff(), vcl::CreateT3FromTTGlyphs(), vcl::CreateT42FromTTGlyphs(), i, LoadFont(), mnReqFontTypeMask, mnReqGlyphCount, mpOutFile, mpReqEncodedIds, mpReqFontName, mpReqGlyphIds, mpSftTTFont, vcl::O_CFF, vcl::Ok, SFNT_TTF, vcl::TrueTypeFont::table(), TYPE3_FONT, and TYPE42_FONT.
Referenced by CreateFontSubset().
void FontSubsetInfo::LoadFont | ( | FontType | eInFontType, |
const unsigned char * | pFontBytes, | ||
int | nByteLength | ||
) |
Definition at line 51 of file fontsubset.cxx.
References meInFontType, mnInByteLength, mpInFontBytes, mpSftTTFont, and SAL_WARN_IF.
Referenced by CreateFontSubsetFromSfnt().
void FontSubsetInfo::LoadFont | ( | vcl::TrueTypeFont * | pSftTrueTypeFont | ) |
Definition at line 62 of file fontsubset.cxx.
References ANY_SFNT, meInFontType, mpInFontBytes, mpSftTTFont, and SAL_WARN_IF.
tools::Rectangle FontSubsetInfo::m_aFontBBox |
Definition at line 71 of file fontsubset.hxx.
Referenced by vcl::PDFWriterImpl::emitFontDescriptor(), vcl::PDFWriterImpl::emitSystemFont(), and vcl::PDFWriterImpl::emitType3Font().
OUString FontSubsetInfo::m_aPSName |
Definition at line 67 of file fontsubset.hxx.
Referenced by CreateFontSubset(), vcl::PDFWriterImpl::emitFontDescriptor(), vcl::PDFWriterImpl::emitFonts(), vcl::PDFWriterImpl::emitSystemFont(), and vcl::PDFWriterImpl::emitType3Font().
bool FontSubsetInfo::m_bFilled |
Definition at line 73 of file fontsubset.hxx.
int FontSubsetInfo::m_nAscent |
all metrics in PS font units
Definition at line 68 of file fontsubset.hxx.
Referenced by vcl::PDFWriterImpl::emitFontDescriptor(), and vcl::PDFWriterImpl::emitSystemFont().
int FontSubsetInfo::m_nCapHeight |
Definition at line 70 of file fontsubset.hxx.
Referenced by vcl::PDFWriterImpl::emitFontDescriptor(), and vcl::PDFWriterImpl::emitSystemFont().
int FontSubsetInfo::m_nDescent |
Definition at line 69 of file fontsubset.hxx.
Referenced by vcl::PDFWriterImpl::emitFontDescriptor(), and vcl::PDFWriterImpl::emitSystemFont().
FontType FontSubsetInfo::m_nFontType |
font-type of subset result
Definition at line 72 of file fontsubset.hxx.
Referenced by vcl::PDFWriterImpl::emitFontDescriptor(), and vcl::PDFWriterImpl::emitFonts().
|
private |
allowed mask of input font-types
Definition at line 79 of file fontsubset.hxx.
Referenced by CreateFontSubset(), and LoadFont().
|
private |
Definition at line 78 of file fontsubset.hxx.
Referenced by CreateFontSubsetFromCff(), and LoadFont().
|
private |
allowed subset-target font types
Definition at line 83 of file fontsubset.hxx.
Referenced by CreateFontSubset(), CreateFontSubsetFromCff(), and CreateFontSubsetFromSfnt().
|
private |
Definition at line 88 of file fontsubset.hxx.
Referenced by CreateFontSubset(), CreateFontSubsetFromCff(), and CreateFontSubsetFromSfnt().
|
private |
Definition at line 77 of file fontsubset.hxx.
Referenced by CreateFontSubsetFromCff(), and LoadFont().
|
private |
Definition at line 84 of file fontsubset.hxx.
Referenced by CreateFontSubset(), CreateFontSubsetFromCff(), and CreateFontSubsetFromSfnt().
|
private |
Definition at line 87 of file fontsubset.hxx.
Referenced by CreateFontSubset(), CreateFontSubsetFromCff(), and CreateFontSubsetFromSfnt().
|
private |
Definition at line 85 of file fontsubset.hxx.
Referenced by CreateFontSubset(), CreateFontSubsetFromCff(), and CreateFontSubsetFromSfnt().
|
private |
Definition at line 86 of file fontsubset.hxx.
Referenced by CreateFontSubset(), CreateFontSubsetFromCff(), and CreateFontSubsetFromSfnt().
|
private |
Definition at line 80 of file fontsubset.hxx.
Referenced by CreateFontSubsetFromSfnt(), and LoadFont().