ADi-FontEngine  1.0
PDF Optimized FontEngine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FontEngine::TPSCMap Class Reference

PostScript CMaps files will be used to define encodings or tounicode mappings. More...

#include <FontEngine.h>

Public Types

typedef FontEngine::TPath TPath
 
typedef PostScript::TFontCodeMap TFontCodeMap
 
typedef PostScript::TCMapDict TCMapDict
 

Public Member Functions

 TPSCMap (const TPathParamMap &ppm)
 ctor with parameter map More...
 
 TPSCMap (const TPSCMap &font)
 copy ctor More...
 
TPSCMapoperator= (const TPSCMap &font)
 assignment operator More...
 
 ~TPSCMap ()
 dtor More...
 
void initPathParameter (const TPathParamMap &ppm)
 set new parameter map More...
 
PostScript::EErrorCodes open (const TPath &fname)
 open a PostScript CMap from file More...
 
PostScript::EErrorCodes open (std::istream &cmapstream)
 open a PostScript CMap from istream More...
 
unsigned int getCMapSize () const
 get number of PostScript CMaps inside the open stream or file More...
 
const TFontCodeMapgetCMapCode (unsigned int idx) const
 get PostScript CMap data see TFontCodeMap More...
 
TCMapDict getCMapDict () const
 return the CMap dictionary data, like /WMode or /CMapName More...
 
bool containKnownPostScriptBug () const
 function return true if a known error was found in CMap PostScript code More...
 

Detailed Description

PostScript CMaps files will be used to define encodings or tounicode mappings.

Member Typedef Documentation

Constructor & Destructor Documentation

FontEngine::TPSCMap::TPSCMap ( const TPathParamMap ppm)
inline

ctor with parameter map

FontEngine::TPSCMap::TPSCMap ( const TPSCMap font)

copy ctor

FontEngine::TPSCMap::~TPSCMap ( )

dtor

Member Function Documentation

bool FontEngine::TPSCMap::containKnownPostScriptBug ( ) const

function return true if a known error was found in CMap PostScript code

Returns
true if error occur
const TFontCodeMap& FontEngine::TPSCMap::getCMapCode ( unsigned int  idx) const

get PostScript CMap data see TFontCodeMap

Parameters
idxindex to different CMaps must be lesser than getCMapSize() return
Returns
the CMap data
TCMapDict FontEngine::TPSCMap::getCMapDict ( ) const

return the CMap dictionary data, like /WMode or /CMapName

Returns
the CMap dictionary
unsigned int FontEngine::TPSCMap::getCMapSize ( ) const

get number of PostScript CMaps inside the open stream or file

Returns
number of CMaps
void FontEngine::TPSCMap::initPathParameter ( const TPathParamMap ppm)
inline

set new parameter map

Parameters
ppmthe new parameter map, see description at TPathParamMap
PostScript::EErrorCodes FontEngine::TPSCMap::open ( const TPath fname)

open a PostScript CMap from file

Parameters
fnamethe complete file path, parsing will begin at front of the file
Returns
an error code or PostScript::eNoError
PostScript::EErrorCodes FontEngine::TPSCMap::open ( std::istream &  cmapstream)

open a PostScript CMap from istream

Parameters
cmapstreamshould be an open istream, parsing will begin at current read position
Returns
an error code or PostScript::eNoError
TPSCMap& FontEngine::TPSCMap::operator= ( const TPSCMap font)

assignment operator


The documentation for this class was generated from the following file:
InsideFont and ADI-FontEngine : Andreas Dippe, © 2013
http://www.insidefont.de