C# Class FairyGUI.BaseFont

Base class for all kind of fonts.
Afficher le fichier Open project: fairygui/FairyGUI-unity Class Usage Examples

Méthodes publiques

Свойство Type Description
canLight bool
canOutline bool
canTint bool
customBold bool
customBoldAndItalic bool
hasChannel bool
keepCrisp bool
mainTexture NTexture
packageItem PackageItem
shader string

Méthodes publiques

Méthode Description
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

Method Details

BaseFont() public méthode

public BaseFont ( ) : UnityEngine
Résultat UnityEngine

GetGlyph() public méthode

public GetGlyph ( char ch, GlyphInfo glyph ) : bool
ch char
glyph GlyphInfo
Résultat bool

GetGlyphSize() public méthode

public GetGlyphSize ( char ch, float &width, float &height ) : bool
ch char
width float
height float
Résultat bool

PrepareCharacters() public méthode

public PrepareCharacters ( string text ) : void
text string
Résultat void

SetFormat() public méthode

public SetFormat ( TextFormat format, float fontSizeScale ) : void
format TextFormat
fontSizeScale float
Résultat void

Property Details

canLight public_oe property

Can this font be lighted?
public bool canLight
Résultat bool

canOutline public_oe property

Can this font be stroked? Will be false for Bitmap fonts.
public bool canOutline
Résultat bool

canTint public_oe property

Can this font be tinted? Will be true for dynamic font and fonts generated by BMFont.
public bool canTint
Résultat bool

customBold public_oe property

If true, it will use extra vertices to enhance bold effect
public bool customBold
Résultat bool

customBoldAndItalic public_oe property

If true, it will use extra vertices to enhance bold effect ONLY when it is in italic style.
public bool customBoldAndItalic
Résultat bool

hasChannel public_oe property

Font generated by BMFont use channels.
public bool hasChannel
Résultat bool

keepCrisp public_oe property

Keep text crisp.
public bool keepCrisp
Résultat bool

mainTexture public_oe property

The texture of this font object.
public NTexture,FairyGUI mainTexture
Résultat NTexture

packageItem public_oe property

public PackageItem,FairyGUI packageItem
Résultat PackageItem

shader public_oe property

The shader for this font object.
public string shader
Résultat string