LibreOffice Module vcl (master)  1
Public Member Functions | Public Attributes | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
FontSubsetInfo Class Referencefinal

#include <fontsubset.hxx>

Collaboration diagram for FontSubsetInfo:

Public Member Functions

 FontSubsetInfo ()
 ~FontSubsetInfo ()
void LoadFont (FontType eInFontType, const unsigned char *pFontBytes, int nByteLength)
void LoadFont (vcl::TrueTypeFont *pSftTrueTypeFont)
bool CreateFontSubset (FontType nOutFontTypeMask, FILE *pOutFile, const char *pOutFontName, const sal_GlyphId *pGlyphIds, const sal_uInt8 *pEncodedIds, int nReqGlyphCount, sal_Int32 *pOutGlyphWidths=nullptr)

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...

Private Member Functions

bool CreateFontSubsetFromCff (sal_Int32 *pOutGlyphWidths)
bool CreateFontSubsetFromSfnt (sal_Int32 *pOutGlyphWidths)

Static Private Member Functions

static bool CreateFontSubsetFromType1 (const sal_Int32 *pOutGlyphWidths)

Private Attributes

unsigned const char * mpInFontBytes
int mnInByteLength
FontType meInFontType
 allowed mask of input font-types More...
FontType mnReqFontTypeMask
 allowed subset-target font types More...
FILE * mpOutFile
const char * mpReqFontName
const sal_GlyphIdmpReqGlyphIds
const sal_uInt8mpReqEncodedIds
int mnReqGlyphCount

Detailed Description

Definition at line 48 of file fontsubset.hxx.

Constructor & Destructor Documentation

FontSubsetInfo::FontSubsetInfo ( )

Definition at line 27 of file fontsubset.cxx.

References NO_FONT.

FontSubsetInfo::~FontSubsetInfo ( )

Definition at line 45 of file fontsubset.cxx.

Member Function Documentation

bool FontSubsetInfo::CreateFontSubset ( FontType  nOutFontTypeMask,
FILE *  pOutFile,
const char *  pOutFontName,
const sal_GlyphId pGlyphIds,
const sal_uInt8 pEncodedIds,
int  nReqGlyphCount,
sal_Int32 *  pOutGlyphWidths = nullptr 
bool FontSubsetInfo::CreateFontSubsetFromCff ( sal_Int32 *  pOutGlyphWidths)
bool FontSubsetInfo::CreateFontSubsetFromSfnt ( sal_Int32 *  pOutGlyphWidths)
bool FontSubsetInfo::CreateFontSubsetFromType1 ( const sal_Int32 *  pOutGlyphWidths)

Definition at line 156 of file fontsubset.cxx.

References SAL_WARN.

Referenced by CreateFontSubset().

void FontSubsetInfo::LoadFont ( FontType  eInFontType,
const unsigned char *  pFontBytes,
int  nByteLength 
void FontSubsetInfo::LoadFont ( vcl::TrueTypeFont pSftTrueTypeFont)

Definition at line 61 of file fontsubset.cxx.

References ANY_SFNT, meInFontType, mpInFontBytes, mpSftTTFont, and SAL_WARN_IF.

Member Data Documentation

tools::Rectangle FontSubsetInfo::m_aFontBBox
OUString FontSubsetInfo::m_aPSName
int FontSubsetInfo::m_nAscent

all metrics in PS font units

Definition at line 66 of file fontsubset.hxx.

Referenced by vcl::PDFWriterImpl::emitFontDescriptor(), vcl::PDFWriterImpl::emitSystemFont(), and SalGraphics::FillFontSubsetInfo().

int FontSubsetInfo::m_nCapHeight
int FontSubsetInfo::m_nDescent
FontType FontSubsetInfo::m_nFontType

font-type of subset result

Definition at line 70 of file fontsubset.hxx.

Referenced by vcl::PDFWriterImpl::emitFontDescriptor(), vcl::PDFWriterImpl::emitFonts(), and SalGraphics::FillFontSubsetInfo().

FontType FontSubsetInfo::meInFontType

allowed mask of input font-types

Definition at line 76 of file fontsubset.hxx.

Referenced by CreateFontSubset(), and LoadFont().

int FontSubsetInfo::mnInByteLength

Definition at line 75 of file fontsubset.hxx.

Referenced by CreateFontSubsetFromCff(), and LoadFont().

FontType FontSubsetInfo::mnReqFontTypeMask

allowed subset-target font types

Definition at line 80 of file fontsubset.hxx.

Referenced by CreateFontSubset(), CreateFontSubsetFromCff(), and CreateFontSubsetFromSfnt().

int FontSubsetInfo::mnReqGlyphCount
unsigned const char* FontSubsetInfo::mpInFontBytes

Definition at line 74 of file fontsubset.hxx.

Referenced by CreateFontSubsetFromCff(), and LoadFont().

FILE* FontSubsetInfo::mpOutFile
const sal_uInt8* FontSubsetInfo::mpReqEncodedIds
const char* FontSubsetInfo::mpReqFontName
const sal_GlyphId* FontSubsetInfo::mpReqGlyphIds
vcl::TrueTypeFont* FontSubsetInfo::mpSftTTFont

Definition at line 77 of file fontsubset.hxx.

Referenced by CreateFontSubsetFromSfnt(), and LoadFont().

The documentation for this class was generated from the following files: