CGM Objects Library
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | Public Attributes | Protected Attributes | List of all members
Larson::CFontMap Class Reference

CFontMap – Container for font objects of a CGM picture and used for text drawing and metrics in DrawBase classes. More...

#include <FontMap.h>

Public Member Functions

void add (long fontindex, std::wstring fontname, vector< std::wstring > *substitutes, bool forceSubst=true)
 add font to font list
 
CLSTFontgetFont (long fontIndex)
 get font object for drawing
 
size_t numFonts ()
 return number fonts in map
 
long getMappedIndex (long fontIndex)
 
long getNumberMapped ()
 get actual number of font indexes used. note this can be greater than number of fonts used e.g. font name is repeated in the orginal CGM fontlist
 

Public Attributes

vector< CLSTFont * > m_fonts
 font list
 

Protected Attributes

vector< long > m_fontIndexMap
 

Detailed Description

CFontMap – Container for font objects of a CGM picture and used for text drawing and metrics in DrawBase classes.

Member Data Documentation

vector<long> Larson::CFontMap::m_fontIndexMap
protected

zero based font index map to map CGM font index to m_fonts m_fontIndexMap[0] will contain the font for text font index 1 neccessary since the input CGM fontlist may contain duplicate font name and this avoids retaining redundant font data for duplicated fonts


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