C# Class FairyGUI.BaseFont

Base class for all kind of fonts.
Show file Open project: fairygui/FairyGUI-unity Class Usage Examples

Public Properties

Property Type Description
canLight bool
canOutline bool
canTint bool
customBold bool
customBoldAndItalic bool
hasChannel bool
keepCrisp bool
mainTexture NTexture
packageItem PackageItem
shader string

Public Methods

Method 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 method

public BaseFont ( ) : UnityEngine
return UnityEngine

GetGlyph() public method

public GetGlyph ( char ch, GlyphInfo glyph ) : bool
ch char
glyph GlyphInfo
return bool

GetGlyphSize() public method

public GetGlyphSize ( char ch, float &width, float &height ) : bool
ch char
width float
height float
return bool

PrepareCharacters() public method

public PrepareCharacters ( string text ) : void
text string
return void

SetFormat() public method

public SetFormat ( TextFormat format, float fontSizeScale ) : void
format TextFormat
fontSizeScale float
return void

Property Details

canLight public property

Can this font be lighted?
public bool canLight
return bool

canOutline public property

Can this font be stroked? Will be false for Bitmap fonts.
public bool canOutline
return bool

canTint public property

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

customBold public property

If true, it will use extra vertices to enhance bold effect
public bool customBold
return bool

customBoldAndItalic public property

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

hasChannel public property

Font generated by BMFont use channels.
public bool hasChannel
return bool

keepCrisp public property

Keep text crisp.
public bool keepCrisp
return bool

mainTexture public property

The texture of this font object.
public NTexture,FairyGUI mainTexture
return NTexture

packageItem public property

public PackageItem,FairyGUI packageItem
return PackageItem

shader public property

The shader for this font object.
public string shader
return string