C# Class FairyGUI.DynamicFont

Inheritance: BaseFont
Afficher le fichier Open project: fairygui/FairyGUI-unity Class Usage Examples

Protected Properties

Свойство Type Description
_cachedBaseline int>.Dictionary
_font UnityEngine.Font

Méthodes publiques

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

Méthode Description
GetBaseLine ( int size ) : int
LoadFont ( ) : void
textureRebuildCallback ( ) : void
textureRebuildCallback ( Font targetFont ) : void

Method Details

DynamicFont() public méthode

public DynamicFont ( string name ) : System
name string
Résultat System

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

_cachedBaseline protected_oe property

protected Dictionary _cachedBaseline
Résultat int>.Dictionary

_font protected_oe property

protected Font,UnityEngine _font
Résultat UnityEngine.Font