C# Class Fuji.Font

Mostra file Open project: TurkeyMan/fuji

Public Methods

Method Description
BlitText ( string text, int x, int y, MFVector colour, int maxChars = -1 ) : int
CharacterPos ( string text, int charIndex, float height ) : MFVector
CharacterWidth ( char character ) : float
Create ( string name ) : Font
DrawText ( string text, MFVector &pos, float height, MFVector &colour, int maxChars, MFMatrix ltw ) : float
DrawText2 ( string text, float x, float y, float height, MFVector &colour, int maxChars, MFMatrix ltw ) : float
DrawTextAnchored ( string text, MFVector pos, MFFontJustify justification, float lineWidth, float textHeight, MFVector colour, int numChars, MFMatrix ltw ) : float
DrawTextJustified ( string text, MFVector pos, float boxWidth, float boxHeight, MFFontJustify justification, float textHeight, MFVector colour, int numChars, MFMatrix ltw ) : float
Release ( ) : int
StringWidth ( string text, float height, float lineWidth, float &totalHeight, int maxLen = -1 ) : float

Private Methods

Method Description
Font ( UIntPtr handle ) : System
MFFont_BlitText ( UIntPtr font, int x, int y, MFVector &colour, [ text, int maxChars ) : int
MFFont_Create ( [ name ) : UIntPtr
MFFont_DrawText ( UIntPtr font, MFVector &pos, float height, MFVector &colour, [ text, int maxChars, MFMatrix &ltw ) : float
MFFont_DrawText2 ( UIntPtr font, float x, float y, float height, MFVector &colour, [ text, int maxChars, MFMatrix &ltw ) : float
MFFont_DrawTextAnchored ( UIntPtr font, [ text, MFVector &pos, MFFontJustify justification, float lineWidth, float textHeight, MFVector &colour, int numChars, MFMatrix &ltw ) : float
MFFont_DrawTextJustified ( UIntPtr font, [ text, MFVector &pos, float boxWidth, float boxHeight, MFFontJustify justification, float textHeight, MFVector &colour, int numChars, MFMatrix &ltw ) : float
MFFont_GetCharPos ( UIntPtr font, [ text, int charIndex, float height ) : MFVector
MFFont_GetCharacterWidth ( UIntPtr font, int character ) : float
MFFont_GetDebugFont ( ) : UIntPtr
MFFont_GetFontHeight ( UIntPtr font ) : float
MFFont_GetStringWidth ( UIntPtr font, [ text, float height, float lineWidth, int maxLen, float &totalHeight ) : float
MFFont_Release ( UIntPtr font ) : int

Method Details

BlitText() public method

public BlitText ( string text, int x, int y, MFVector colour, int maxChars = -1 ) : int
text string
x int
y int
colour MFVector
maxChars int
return int

CharacterPos() public method

public CharacterPos ( string text, int charIndex, float height ) : MFVector
text string
charIndex int
height float
return MFVector

CharacterWidth() public method

public CharacterWidth ( char character ) : float
character char
return float

Create() public static method

public static Create ( string name ) : Font
name string
return Font

DrawText() public method

public DrawText ( string text, MFVector &pos, float height, MFVector &colour, int maxChars, MFMatrix ltw ) : float
text string
pos MFVector
height float
colour MFVector
maxChars int
ltw MFMatrix
return float

DrawText2() public method

public DrawText2 ( string text, float x, float y, float height, MFVector &colour, int maxChars, MFMatrix ltw ) : float
text string
x float
y float
height float
colour MFVector
maxChars int
ltw MFMatrix
return float

DrawTextAnchored() public method

public DrawTextAnchored ( string text, MFVector pos, MFFontJustify justification, float lineWidth, float textHeight, MFVector colour, int numChars, MFMatrix ltw ) : float
text string
pos MFVector
justification MFFontJustify
lineWidth float
textHeight float
colour MFVector
numChars int
ltw MFMatrix
return float

DrawTextJustified() public method

public DrawTextJustified ( string text, MFVector pos, float boxWidth, float boxHeight, MFFontJustify justification, float textHeight, MFVector colour, int numChars, MFMatrix ltw ) : float
text string
pos MFVector
boxWidth float
boxHeight float
justification MFFontJustify
textHeight float
colour MFVector
numChars int
ltw MFMatrix
return float

Release() public method

public Release ( ) : int
return int

StringWidth() public method

public StringWidth ( string text, float height, float lineWidth, float &totalHeight, int maxLen = -1 ) : float
text string
height float
lineWidth float
totalHeight float
maxLen int
return float