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:
[legend]

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...
 
vcl::TrueTypeFontmpSftTTFont
 
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 ( )
explicit

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)
private
bool FontSubsetInfo::CreateFontSubsetFromSfnt ( sal_Int32 *  pOutGlyphWidths)
private
bool FontSubsetInfo::CreateFontSubsetFromType1 ( const sal_Int32 *  pOutGlyphWidths)
staticprivate

Definition at line 156 of file fontsubset.cxx.

Referenced by CreateFontSubset().

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

Definition at line 50 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 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 CffSubsetterContext::emitAsType1(), vcl::PDFWriterImpl::emitFontDescriptor(), and vcl::PDFWriterImpl::emitSystemFont().

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 CffSubsetterContext::emitAsType1(), vcl::PDFWriterImpl::emitFontDescriptor(), and vcl::PDFWriterImpl::emitFonts().

FontType FontSubsetInfo::meInFontType
private

allowed mask of input font-types

Definition at line 76 of file fontsubset.hxx.

Referenced by CreateFontSubset(), and LoadFont().

int FontSubsetInfo::mnInByteLength
private

Definition at line 75 of file fontsubset.hxx.

Referenced by CreateFontSubsetFromCff(), and LoadFont().

FontType FontSubsetInfo::mnReqFontTypeMask
private

allowed subset-target font types

Definition at line 80 of file fontsubset.hxx.

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

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

Definition at line 74 of file fontsubset.hxx.

Referenced by CreateFontSubsetFromCff(), and LoadFont().

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

Definition at line 77 of file fontsubset.hxx.

Referenced by CreateFontSubsetFromSfnt(), and LoadFont().


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