C# Класс Engine.Objects.FontInstance

Наследование: Jurassic.Library.ObjectInstance
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
DrawText ( SpriteBatch batch, double x, double y, string text ) : void
FontInstance ( ScriptEngine parent ) : System
FontInstance ( ScriptEngine parent, string filename ) : System
GetGlyph ( int num ) : Image

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

Метод Описание
CheckUpdate ( ) : void

Tries to update the atlas if any graphical changes were made to this font.

Clone ( ) : FontInstance
DrawText ( double x, double y, string text ) : void
DrawTextBox ( double x, double y, double w, double h, int spacing, string text ) : void
DrawZoomedText ( double x, double y, double zoom, string text ) : void
GetCharacterImage ( int ch ) : ImageInstance
GetColorMask ( ) : ColorInstance
GetHeight ( ) : int
GetStringHeight ( string text, int width ) : int
GetStringWidth ( string text ) : int
ReadFromFile ( string filename ) : void
Save ( string filename ) : void
SetCharacterImage ( int ch, ImageInstance image ) : void
SetColorMask ( ColorInstance color ) : void
ToString ( ) : string
Wrap ( string text, int width ) : ArrayInstance

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

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

public DrawText ( SpriteBatch batch, double x, double y, string text ) : void
batch SpriteBatch
x double
y double
text string
Результат void

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

public FontInstance ( ScriptEngine parent ) : System
parent ScriptEngine
Результат System

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

public FontInstance ( ScriptEngine parent, string filename ) : System
parent ScriptEngine
filename string
Результат System

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

public GetGlyph ( int num ) : Image
num int
Результат Image