FontCompactorParams

FontCompactorParams
Scaleform::GFx::State
    Scaleform::GFx::FontCompactorParams
Declaration
class FontCompactorParams : public State;
Description

FontCompactorParams contains the font compactor configuration options necessary to generate glyphs . The parameters nominalSize and mergeContours determine the compactness of the glyphs. 

Small nominal size results in smaller total data size, but less accurate glyphs. For example, NominalSize=256 can typically save about 25% of memory compared with NominalSize=1024, but really big glyphs, like 500 pixels may have visual inaccuracy. For typical game UI text, NominalSize=256 is still good enough. In SWF, it is typically 1024. 

The boolean flag mergeContours determines whether or not the FontCompactor should merge the same contours and glyphs. Merging the data can be more compact and save 10-70% of memory, depending on fonts. But if the font contains too many glyphs, the hash table may consume additional memory, 12 (32-bit) or 16 (64-bit) bytes per each unique path, plus 12 (32-bit) or 16 (64-bit) bytes per each unique glyph.

Data Members
Data Member 
Description 
A Boolean flag that indicates whether or not the FontCompactor should merge the same contours and glyphs. 
The nominal glyph that corresponds with the input coordinates. 
Methods
Method 
Description 
FontCompactorParams constructor. 
Obtains the nominal size of glyphs in FontCompactor. 
Returns the state of boolean flag that indicates whether or not FontCompactor should merge the same contours and glyphs. 
File

GFx_Loader.h