C# Class PixelFarm.Drawing.Fonts.SimpleFontAtlasBuilder

Show file Open project: prepare/HTML-Renderer Class Usage Examples

Public Methods

Method Description
AddGlyph ( int codePoint, char c, FontGlyph fontGlyph, GlyphImage glyphImage ) : void
BuildSingleImage ( ) : GlyphImage
GetLatestGenGlyphImage ( ) : GlyphImage
LoadFontInfo ( string filename ) : SimpleFontAtlas
SaveFontInfo ( string filename ) : void

save font info into xml document

Private Methods

Method Description
ConvertToBase64 ( int buffer ) : string
CopyToDest ( int srcPixels, int srcW, int srcH, int targetPixels, int targetX, int targetY, int totalTargetWidth ) : void
ParseFloatArray ( string str ) : float[]
ParseRect ( string str ) : Rectangle

Method Details

AddGlyph() public method

public AddGlyph ( int codePoint, char c, FontGlyph fontGlyph, GlyphImage glyphImage ) : void
codePoint int
c char
fontGlyph FontGlyph
glyphImage GlyphImage
return void

BuildSingleImage() public method

public BuildSingleImage ( ) : GlyphImage
return GlyphImage

GetLatestGenGlyphImage() public method

public GetLatestGenGlyphImage ( ) : GlyphImage
return GlyphImage

LoadFontInfo() public method

public LoadFontInfo ( string filename ) : SimpleFontAtlas
filename string
return SimpleFontAtlas

SaveFontInfo() public method

save font info into xml document
public SaveFontInfo ( string filename ) : void
filename string
return void