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

Private Member Functions

bool CreateFontSubsetFromCff ()
 
bool CreateFontSubsetFromSfnt ()
 

Static Private Member Functions

static bool CreateFontSubsetFromType1 ()
 

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...
 
SvStreammpOutFile
 
const char * mpReqFontName
 
const sal_GlyphIdmpReqGlyphIds
 
const sal_uInt8mpReqEncodedIds
 
int mnReqGlyphCount
 

Detailed Description

Definition at line 50 of file fontsubset.hxx.

Constructor & Destructor Documentation

◆ FontSubsetInfo()

FontSubsetInfo::FontSubsetInfo ( )
explicit

Definition at line 27 of file fontsubset.cxx.

References NO_FONT.

◆ ~FontSubsetInfo()

FontSubsetInfo::~FontSubsetInfo ( )

Definition at line 45 of file fontsubset.cxx.

Member Function Documentation

◆ CreateFontSubset()

bool FontSubsetInfo::CreateFontSubset ( FontType  nOutFontTypeMask,
SvStream pOutFile,
const char *  pOutFontName,
const sal_GlyphId pGlyphIds,
const sal_uInt8 pEncodedIds,
int  nReqGlyphCount 
)

◆ CreateFontSubsetFromCff()

bool FontSubsetInfo::CreateFontSubsetFromCff ( )
private

◆ CreateFontSubsetFromSfnt()

bool FontSubsetInfo::CreateFontSubsetFromSfnt ( )
private

◆ CreateFontSubsetFromType1()

bool FontSubsetInfo::CreateFontSubsetFromType1 ( )
staticprivate

Definition at line 155 of file fontsubset.cxx.

References SAL_WARN.

Referenced by CreateFontSubset().

◆ LoadFont() [1/2]

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

◆ LoadFont() [2/2]

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

◆ m_aFontBBox

tools::Rectangle FontSubsetInfo::m_aFontBBox

◆ m_aPSName

OUString FontSubsetInfo::m_aPSName

◆ m_nAscent

int FontSubsetInfo::m_nAscent

all metrics in PS font units

Definition at line 68 of file fontsubset.hxx.

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

◆ m_nCapHeight

int FontSubsetInfo::m_nCapHeight

◆ m_nDescent

int FontSubsetInfo::m_nDescent

◆ m_nFontType

FontType FontSubsetInfo::m_nFontType

font-type of subset result

Definition at line 72 of file fontsubset.hxx.

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

◆ meInFontType

FontType FontSubsetInfo::meInFontType
private

allowed mask of input font-types

Definition at line 78 of file fontsubset.hxx.

Referenced by CreateFontSubset(), and LoadFont().

◆ mnInByteLength

int FontSubsetInfo::mnInByteLength
private

Definition at line 77 of file fontsubset.hxx.

Referenced by CreateFontSubsetFromCff(), and LoadFont().

◆ mnReqFontTypeMask

FontType FontSubsetInfo::mnReqFontTypeMask
private

allowed subset-target font types

Definition at line 82 of file fontsubset.hxx.

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

◆ mnReqGlyphCount

int FontSubsetInfo::mnReqGlyphCount
private

◆ mpInFontBytes

unsigned const char* FontSubsetInfo::mpInFontBytes
private

Definition at line 76 of file fontsubset.hxx.

Referenced by CreateFontSubsetFromCff(), and LoadFont().

◆ mpOutFile

SvStream* FontSubsetInfo::mpOutFile
private

◆ mpReqEncodedIds

const sal_uInt8* FontSubsetInfo::mpReqEncodedIds
private

◆ mpReqFontName

const char* FontSubsetInfo::mpReqFontName
private

◆ mpReqGlyphIds

const sal_GlyphId* FontSubsetInfo::mpReqGlyphIds
private

◆ mpSftTTFont

vcl::TrueTypeFont* FontSubsetInfo::mpSftTTFont
private

Definition at line 79 of file fontsubset.hxx.

Referenced by CreateFontSubsetFromSfnt(), and LoadFont().


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