C# Класс Fuji.Font

Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

BlitText() публичный Метод

public BlitText ( string text, int x, int y, MFVector colour, int maxChars = -1 ) : int
text string
x int
y int
colour MFVector
maxChars int
Результат int

CharacterPos() публичный Метод

public CharacterPos ( string text, int charIndex, float height ) : MFVector
text string
charIndex int
height float
Результат MFVector

CharacterWidth() публичный Метод

public CharacterWidth ( char character ) : float
character char
Результат float

Create() публичный статический Метод

public static Create ( string name ) : Font
name string
Результат Font

DrawText() публичный Метод

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
Результат float

DrawText2() публичный Метод

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
Результат float

DrawTextAnchored() публичный Метод

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
Результат float

DrawTextJustified() публичный Метод

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
Результат float

Release() публичный Метод

public Release ( ) : int
Результат int

StringWidth() публичный Метод

public StringWidth ( string text, float height, float lineWidth, float &totalHeight, int maxLen = -1 ) : float
text string
height float
lineWidth float
totalHeight float
maxLen int
Результат float