LibreOffice Module vcl (master)  1
Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | List of all members
CffSubsetterContext Class Reference
Inheritance diagram for CffSubsetterContext:
[legend]
Collaboration diagram for CffSubsetterContext:
[legend]

Public Member Functions

 CffSubsetterContext (const U8 *pBasePtr, int nBaseLen)
 
bool initialCffRead ()
 
void emitAsType1 (class Type1Emitter &, const sal_GlyphId *pGlyphIds, const U8 *pEncoding, sal_Int32 *pGlyphWidths, int nGlyphCount, FontSubsetInfo &)
 
void push (ValType nVal)
 
ValType popVal ()
 
ValType getVal (int nIndex) const
 
int popInt ()
 
int size () const
 
void clear ()
 
void addHints (bool bVerticalHints)
 
bool hasCharWidth () const
 
ValType getCharWidth () const
 
void setNominalWidth (ValType aWidth)
 
void setDefaultWidth (ValType aWidth)
 
void updateWidth (bool bUseFirstVal)
 

Static Public Attributes

static const int NMAXSTACK = 48
 
static const int NMAXHINTS = 2*96
 
static const int NMAXTRANS = 32
 

Private Member Functions

int convert2Type1Ops (CffLocal *, const U8 *pType2Ops, int nType2Len, U8 *pType1Ops)
 
void convertOneTypeOp ()
 
void convertOneTypeEsc ()
 
void callType2Subr (bool bGlobal, int nSubrNumber)
 
sal_Int32 getReadOfs () const
 
int seekIndexData (int nIndexBase, int nDataIndex)
 
void seekIndexEnd (int nIndexBase)
 
void readDictOp ()
 
RealType readRealVal ()
 
const char * getString (int nStringID)
 
int getFDSelect (int nGlyphIndex) const
 
int getGlyphSID (int nGlyphIndex) const
 
const char * getGlyphName (int nGlyphIndex)
 
void read2push ()
 
void writeType1Val (ValType)
 
void writeTypeOp (int nTypeOp)
 
void writeTypeEsc (int nTypeOp)
 
void writeCurveTo (int nStackPos, int nIX1, int nIY1, int nIX2, int nIY2, int nIX3, int nIY3)
 
void pop2MultiWrite (int nArgsPerTypo, int nTypeOp, int nTypeXor=0)
 
void popAll2Write (int nTypeOp)
 
- Private Member Functions inherited from CffGlobal
 CffGlobal ()
 

Private Attributes

const U8mpBasePtr
 
const U8mpBaseEnd
 
const U8mpReadPtr
 
const U8mpReadEnd
 
U8mpWritePtr
 
bool mbNeedClose
 
bool mbIgnoreHints
 
sal_Int32 mnCntrMask
 
CffLocal maCffLocal [256]
 
CffLocalmpCffLocal
 
int mnStackIdx
 
ValType mnValStack [NMAXSTACK+4]
 
ValType mnTransVals [NMAXTRANS]
 
int mnHintSize
 
int mnHorzHintSize
 
ValType mnHintStack [NMAXHINTS]
 
ValType maCharWidth
 
- Private Attributes inherited from CffGlobal
int mnNameIdxBase
 
int mnStringIdxBase
 
bool mbCIDFont
 
int mnCharStrBase
 
int mnCharStrCount
 
int mnCharsetBase
 
int mnGlobalSubrBase
 
int mnGlobalSubrCount
 
int mnGlobalSubrBias
 
int mnFDSelectBase
 
int mnFontDictBase
 
int mnFDAryCount
 
std::vector< ValTypemaFontBBox
 
std::vector< ValTypemaFontMatrix
 
int mnFontNameSID
 
int mnFullNameSID
 

Detailed Description

Definition at line 261 of file cff.cxx.

Constructor & Destructor Documentation

CffSubsetterContext::CffSubsetterContext ( const U8 pBasePtr,
int  nBaseLen 
)
explicit

Definition at line 348 of file cff.cxx.

Member Function Documentation

void CffSubsetterContext::addHints ( bool  bVerticalHints)

Definition at line 395 of file cff.cxx.

References i, mnHintSize, mnHintStack, mnHorzHintSize, mnStackIdx, mnValStack, NMAXHINTS, and updateWidth().

Referenced by convertOneTypeOp().

void CffSubsetterContext::callType2Subr ( bool  bGlobal,
int  nSubrNumber 
)
private
void CffSubsetterContext::clear ( )
inline

Definition at line 323 of file cff.cxx.

References mnStackIdx.

Referenced by convertOneTypeOp(), pop2MultiWrite(), popAll2Write(), and readDictOp().

int CffSubsetterContext::convert2Type1Ops ( CffLocal pCffLocal,
const U8 pType2Ops,
int  nType2Len,
U8 pType1Ops 
)
private
void CffSubsetterContext::convertOneTypeEsc ( )
private
void CffSubsetterContext::convertOneTypeOp ( )
private
void CffSubsetterContext::emitAsType1 ( class Type1Emitter rEmitter,
const sal_GlyphId pGlyphIds,
const U8 pEncoding,
sal_Int32 *  pGlyphWidths,
int  nGlyphCount,
FontSubsetInfo rFSInfo 
)
ValType CffSubsetterContext::getCharWidth ( ) const
inline

Definition at line 330 of file cff.cxx.

References maCharWidth.

Referenced by emitAsType1().

int CffSubsetterContext::getFDSelect ( int  nGlyphIndex) const
private

Definition at line 1452 of file cff.cxx.

References i, CffGlobal::mbCIDFont, CffGlobal::mnCharStrCount, CffGlobal::mnFDSelectBase, mpBasePtr, and void().

Referenced by emitAsType1().

const char * CffSubsetterContext::getGlyphName ( int  nGlyphIndex)
private

Definition at line 1543 of file cff.cxx.

References getGlyphSID(), getString(), and CffGlobal::mbCIDFont.

Referenced by emitAsType1().

int CffSubsetterContext::getGlyphSID ( int  nGlyphIndex) const
private

Definition at line 1495 of file cff.cxx.

References CffGlobal::mnCharsetBase, CffGlobal::mnCharStrCount, and mpBasePtr.

Referenced by getGlyphName().

sal_Int32 CffSubsetterContext::getReadOfs ( ) const
inlineprivate

Definition at line 281 of file cff.cxx.

References mpBasePtr, and mpReadPtr.

Referenced by initialCffRead().

const char * CffSubsetterContext::getString ( int  nStringID)
private

Definition at line 1420 of file cff.cxx.

References i, CffGlobal::mnStringIdxBase, mpReadEnd, mpReadPtr, pStringIds, SAL_N_ELEMENTS, and seekIndexData().

Referenced by emitAsType1(), and getGlyphName().

ValType CffSubsetterContext::getVal ( int  nIndex) const
inline

Definition at line 320 of file cff.cxx.

References mnValStack.

Referenced by readDictOp().

bool CffSubsetterContext::hasCharWidth ( ) const
inline

Definition at line 329 of file cff.cxx.

References maCharWidth.

Referenced by updateWidth().

bool CffSubsetterContext::initialCffRead ( )
void CffSubsetterContext::pop2MultiWrite ( int  nArgsPerTypo,
int  nTypeOp,
int  nTypeXor = 0 
)
private

Definition at line 617 of file cff.cxx.

References clear(), i, mnStackIdx, mnValStack, writeType1Val(), and writeTypeOp().

Referenced by convertOneTypeOp().

void CffSubsetterContext::popAll2Write ( int  nTypeOp)
private

Definition at line 631 of file cff.cxx.

References clear(), i, mnStackIdx, mnValStack, writeType1Val(), and writeTypeOp().

Referenced by convertOneTypeOp().

int CffSubsetterContext::popInt ( )
inline

Definition at line 370 of file cff.cxx.

References popVal().

Referenced by convertOneTypeOp(), and readDictOp().

ValType CffSubsetterContext::popVal ( )
inline

Definition at line 319 of file cff.cxx.

References mnStackIdx, and mnValStack.

Referenced by popInt(), and readDictOp().

void CffSubsetterContext::push ( ValType  nVal)
inline

Definition at line 318 of file cff.cxx.

References mnStackIdx, and mnValStack.

Referenced by read2push(), and readDictOp().

void CffSubsetterContext::read2push ( )
private

Definition at line 550 of file cff.cxx.

References mpReadPtr, and push().

Referenced by convertOneTypeOp(), and readDictOp().

void CffSubsetterContext::readDictOp ( )
private
RealType CffSubsetterContext::readRealVal ( )
private

Definition at line 1144 of file cff.cxx.

References mpReadPtr.

Referenced by readDictOp().

int CffSubsetterContext::seekIndexData ( int  nIndexBase,
int  nDataIndex 
)
private

Definition at line 1215 of file cff.cxx.

References mpBaseEnd, mpBasePtr, mpReadEnd, and mpReadPtr.

Referenced by callType2Subr(), emitAsType1(), getString(), and initialCffRead().

void CffSubsetterContext::seekIndexEnd ( int  nIndexBase)
private

Definition at line 1254 of file cff.cxx.

References mpBaseEnd, mpBasePtr, mpReadEnd, and mpReadPtr.

Referenced by initialCffRead().

void CffSubsetterContext::setDefaultWidth ( ValType  aWidth)
inline

Definition at line 332 of file cff.cxx.

References CffLocal::maDefaultWidth.

Referenced by readDictOp().

void CffSubsetterContext::setNominalWidth ( ValType  aWidth)
inline

Definition at line 331 of file cff.cxx.

References CffLocal::maNominalWidth.

Referenced by readDictOp().

int CffSubsetterContext::size ( ) const
inline

Definition at line 322 of file cff.cxx.

References mnStackIdx.

Referenced by convertOneTypeOp(), and readDictOp().

void CffSubsetterContext::updateWidth ( bool  bUseFirstVal)
inline
void CffSubsetterContext::writeCurveTo ( int  nStackPos,
int  nIX1,
int  nIY1,
int  nIX2,
int  nIY2,
int  nIX3,
int  nIY3 
)
private

Definition at line 642 of file cff.cxx.

References mnValStack, TYPE1OP::RCURVETO, writeType1Val(), and writeTypeOp().

Referenced by convertOneTypeEsc(), and convertOneTypeOp().

void CffSubsetterContext::writeType1Val ( ValType  aVal)
private

Definition at line 580 of file cff.cxx.

References mpWritePtr.

Referenced by convert2Type1Ops(), convertOneTypeOp(), pop2MultiWrite(), popAll2Write(), and writeCurveTo().

void CffSubsetterContext::writeTypeEsc ( int  nTypeOp)
inlineprivate

Definition at line 611 of file cff.cxx.

References mpWritePtr, and TYPE1OP::T1ESC.

Referenced by convertOneTypeOp().

void CffSubsetterContext::writeTypeOp ( int  nTypeOp)
inlineprivate

Definition at line 606 of file cff.cxx.

References mpWritePtr.

Referenced by convert2Type1Ops(), convertOneTypeOp(), pop2MultiWrite(), popAll2Write(), and writeCurveTo().

Member Data Documentation

CffLocal CffSubsetterContext::maCffLocal[256]
private

Definition at line 297 of file cff.cxx.

Referenced by emitAsType1(), and initialCffRead().

ValType CffSubsetterContext::maCharWidth
private

Definition at line 345 of file cff.cxx.

Referenced by convert2Type1Ops(), getCharWidth(), hasCharWidth(), and updateWidth().

bool CffSubsetterContext::mbIgnoreHints
private

Definition at line 291 of file cff.cxx.

Referenced by convert2Type1Ops(), and convertOneTypeOp().

bool CffSubsetterContext::mbNeedClose
private

Definition at line 290 of file cff.cxx.

Referenced by convert2Type1Ops(), and convertOneTypeOp().

sal_Int32 CffSubsetterContext::mnCntrMask
private

Definition at line 292 of file cff.cxx.

Referenced by convert2Type1Ops(), and convertOneTypeOp().

int CffSubsetterContext::mnHintSize
private

Definition at line 341 of file cff.cxx.

Referenced by addHints(), convert2Type1Ops(), and convertOneTypeOp().

ValType CffSubsetterContext::mnHintStack[NMAXHINTS]
private

Definition at line 343 of file cff.cxx.

Referenced by addHints(), and convertOneTypeOp().

int CffSubsetterContext::mnHorzHintSize
private

Definition at line 342 of file cff.cxx.

Referenced by addHints(), convert2Type1Ops(), and convertOneTypeOp().

int CffSubsetterContext::mnStackIdx
private
ValType CffSubsetterContext::mnTransVals[NMAXTRANS]
private

Definition at line 339 of file cff.cxx.

Referenced by convertOneTypeEsc().

ValType CffSubsetterContext::mnValStack[NMAXSTACK+4]
private
const U8* CffSubsetterContext::mpBaseEnd
private

Definition at line 284 of file cff.cxx.

Referenced by initialCffRead(), seekIndexData(), and seekIndexEnd().

const U8* CffSubsetterContext::mpBasePtr
private
CffLocal* CffSubsetterContext::mpCffLocal
private
const U8* CffSubsetterContext::mpReadEnd
private
const U8* CffSubsetterContext::mpReadPtr
private
U8* CffSubsetterContext::mpWritePtr
private

Definition at line 289 of file cff.cxx.

Referenced by convert2Type1Ops(), writeType1Val(), writeTypeEsc(), and writeTypeOp().

const int CffSubsetterContext::NMAXHINTS = 2*96
static

Definition at line 266 of file cff.cxx.

Referenced by addHints().

const int CffSubsetterContext::NMAXSTACK = 48
static

Definition at line 265 of file cff.cxx.

const int CffSubsetterContext::NMAXTRANS = 32
static

Definition at line 267 of file cff.cxx.

Referenced by convertOneTypeEsc().


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