C# Класс FairyGUI.BaseFont

Base class for all kind of fonts.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
canLight bool
canOutline bool
canTint bool
customBold bool
customBoldAndItalic bool
hasChannel bool
keepCrisp bool
mainTexture NTexture
packageItem PackageItem
shader string

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

Метод Описание
BaseFont ( ) : UnityEngine
GetGlyph ( char ch, GlyphInfo glyph ) : bool
GetGlyphSize ( char ch, float &width, float &height ) : bool
PrepareCharacters ( string text ) : void
SetFormat ( TextFormat format, float fontSizeScale ) : void

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

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

public BaseFont ( ) : UnityEngine
Результат UnityEngine

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

public GetGlyph ( char ch, GlyphInfo glyph ) : bool
ch char
glyph GlyphInfo
Результат bool

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

public GetGlyphSize ( char ch, float &width, float &height ) : bool
ch char
width float
height float
Результат bool

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

public PrepareCharacters ( string text ) : void
text string
Результат void

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

public SetFormat ( TextFormat format, float fontSizeScale ) : void
format TextFormat
fontSizeScale float
Результат void

Описание свойств

canLight публичное свойство

Can this font be lighted?
public bool canLight
Результат bool

canOutline публичное свойство

Can this font be stroked? Will be false for Bitmap fonts.
public bool canOutline
Результат bool

canTint публичное свойство

Can this font be tinted? Will be true for dynamic font and fonts generated by BMFont.
public bool canTint
Результат bool

customBold публичное свойство

If true, it will use extra vertices to enhance bold effect
public bool customBold
Результат bool

customBoldAndItalic публичное свойство

If true, it will use extra vertices to enhance bold effect ONLY when it is in italic style.
public bool customBoldAndItalic
Результат bool

hasChannel публичное свойство

Font generated by BMFont use channels.
public bool hasChannel
Результат bool

keepCrisp публичное свойство

Keep text crisp.
public bool keepCrisp
Результат bool

mainTexture публичное свойство

The texture of this font object.
public NTexture,FairyGUI mainTexture
Результат NTexture

packageItem публичное свойство

public PackageItem,FairyGUI packageItem
Результат PackageItem

shader публичное свойство

The shader for this font object.
public string shader
Результат string