DynamicFont
Namespace:FairyGUI
Source:Assets/Scripts/Core/Text/DynamicFont.cs (line 10)
public class DynamicFont : BaseFont
Inheritance:BaseFont → DynamicFont
Inherited members
SupOffset, SupScale, canTint, customBoldAndItalic, customBold, customOutline, keepCrisp, mainTexture, name, shader, textRebuildFlag, version, BuildGraphics, Prepare, StartDraw
Constructors
DynamicFont()
public DynamicFont();
Source:Core/Text/DynamicFont.cs (line 24)
DynamicFont(string, Font)
public DynamicFont(string name, Font font);
| Parameter | Type | Description |
|---|---|---|
name | string | |
font | Font |
Source:Core/Text/DynamicFont.cs (line 38)
Methods
Dispose()
override public void Dispose();
Source:Core/Text/DynamicFont.cs (line 44)
DrawGlyph(VertexBuffer, float, float)
override public void DrawGlyph(VertexBuffer vb, float x, float y);
| Parameter | Type | Description |
|---|---|---|
vb | VertexBuffer | |
x | float | |
y | float |
Source:Core/Text/DynamicFont.cs (line 186)
DrawLine(VertexBuffer, float, float, float, int, int)
override public void DrawLine(VertexBuffer vb, float x, float y, float width, int fontSize, int type);
| Parameter | Type | Description |
|---|---|---|
vb | VertexBuffer | |
x | float | |
y | float | |
width | float | |
fontSize | int | |
type | int |
Source:Core/Text/DynamicFont.cs (line 260)
GetGlyph(char, float, float, float)
override public bool GetGlyph(char ch, out float width, out float height, out float baseline);
| Parameter | Type | Description |
|---|---|---|
ch | char | |
width | float | |
height | float | |
baseline | float |
Source:Core/Text/DynamicFont.cs (line 119)
GetLineHeight(int)
override public int GetLineHeight(int size);
| Parameter | Type | Description |
|---|---|---|
size | int |
Source:Core/Text/DynamicFont.cs (line 351)
HasCharacter(char)
override public bool HasCharacter(char ch);
| Parameter | Type | Description |
|---|---|---|
ch | char |
Source:Core/Text/DynamicFont.cs (line 346)
PrepareCharacters(string, TextFormat, float)
override public void PrepareCharacters(string text, TextFormat format, float fontSizeScale);
| Parameter | Type | Description |
|---|---|---|
text | string | |
format | TextFormat | |
fontSizeScale | float |
Source:Core/Text/DynamicFont.cs (line 112)
SetFormat(TextFormat, float)
override public void SetFormat(TextFormat format, float fontSizeScale);
| Parameter | Type | Description |
|---|---|---|
format | TextFormat | |
fontSizeScale | float |
Source:Core/Text/DynamicFont.cs (line 75)
Properties
nativeFont
public Font nativeFont { get; set; }
Source:Core/Text/DynamicFont.cs (line 49)