C# 클래스 FontPack.PackedFont

PackedFont - Class to read fonts packed by FontPacker
파일 보기 프로젝트 열기: sriharshachilakapati/FontPacker 1 사용 예제들

공개 메소드들

메소드 설명
DrawString ( string text, float x, float y, Graphics g ) : void

Draws a string using this font at a position using the given Graphics context.

GetAdvanceWidth ( char c ) : int

Get the AdvanceWidth of a glyph

GetGlyph ( char c ) : Image

Get the Glyph of the char

PackedFont ( Stream stream ) : System

Load a PackedFont from a stream.

PackedFont ( string filename ) : System

Load a PackedFont from a file.

메소드 상세

DrawString() 공개 메소드

Draws a string using this font at a position using the given Graphics context.
public DrawString ( string text, float x, float y, Graphics g ) : void
text string The text to be drawn.
x float The x-position
y float The y-position
g System.Drawing.Graphics The graphics context to be used
리턴 void

GetAdvanceWidth() 공개 메소드

Get the AdvanceWidth of a glyph
public GetAdvanceWidth ( char c ) : int
c char The character of glyph
리턴 int

GetGlyph() 공개 메소드

Get the Glyph of the char
public GetGlyph ( char c ) : Image
c char The character of glyph
리턴 Image

PackedFont() 공개 메소드

Load a PackedFont from a stream.
public PackedFont ( Stream stream ) : System
stream Stream The stream containing the data.
리턴 System

PackedFont() 공개 메소드

Load a PackedFont from a file.
public PackedFont ( string filename ) : System
filename string The name of the file
리턴 System