C# Class FairyGUI.DynamicFont

Inheritance: BaseFont
Show file Open project: fairygui/FairyGUI-unity Class Usage Examples

Protected Properties

Property Type Description
_cachedBaseline int>.Dictionary
_font UnityEngine.Font

Public Methods

Method Description
DynamicFont ( string name ) : System
GetGlyph ( char ch, GlyphInfo glyph ) : bool
GetGlyphSize ( char ch, float &width, float &height ) : bool
PrepareCharacters ( string text ) : void
SetFormat ( TextFormat format, float fontSizeScale ) : void

Private Methods

Method Description
GetBaseLine ( int size ) : int
LoadFont ( ) : void
textureRebuildCallback ( ) : void
textureRebuildCallback ( Font targetFont ) : void

Method Details

DynamicFont() public method

public DynamicFont ( string name ) : System
name string
return System

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

_cachedBaseline protected property

protected Dictionary _cachedBaseline
return int>.Dictionary

_font protected property

protected Font,UnityEngine _font
return UnityEngine.Font