CFontMap – Container for font objects of a CGM picture and used for text drawing and metrics in DrawBase classes.
More...
#include <FontMap.h>
|
|
void | add (long fontindex, std::wstring fontname, vector< std::wstring > *substitutes, bool forceSubst=true) |
| | add font to font list
|
| |
|
CLSTFont * | getFont (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
|
| |
CFontMap – Container for font objects of a CGM picture and used for text drawing and metrics in DrawBase classes.
| 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: