C# Class FairyGUI.BaseFont

Base class for all kind of fonts.
显示文件 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_oe property

Can this font be lighted?
public bool canLight
return bool

canOutline public_oe property

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

canTint public_oe property

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

customBold public_oe property

If true, it will use extra vertices to enhance bold effect
public bool customBold
return 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
return bool

hasChannel public_oe property

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

keepCrisp public_oe property

Keep text crisp.
public bool keepCrisp
return bool

mainTexture public_oe property

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

packageItem public_oe property

public PackageItem,FairyGUI packageItem
return PackageItem

shader public_oe property

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