BitmapFont
Namespace:FairyGUI
Source:Assets/Scripts/Core/Text/BitmapFont.cs (line 9)
public class BitmapFont : BaseFont
Inheritance:BaseFont → BitmapFont
Inherited members
SupOffset, SupScale, canTint, customBoldAndItalic, customBold, customOutline, keepCrisp, mainTexture, name, shader, textRebuildFlag, version, BuildGraphics, Dispose, DrawLine, Prepare, PrepareCharacters, StartDraw
Constructors
BitmapFont()
public BitmapFont();
Source:Core/Text/BitmapFont.cs (line 45)
Fields
_dict
protected Dictionary<int, BMGlyph> _dict;
Source:Core/Text/BitmapFont.cs (line 41)
_glyph
protected BMGlyph _glyph;
Source:Core/Text/BitmapFont.cs (line 42)
hasChannel
public bool hasChannel;
Font generated by BMFont use channels.
Source:Core/Text/BitmapFont.cs (line 39)
resizable
public bool resizable;
Source:Core/Text/BitmapFont.cs (line 34)
size
public int size;
Source:Core/Text/BitmapFont.cs (line 29)
Methods
AddChar(char, BMGlyph)
public void AddChar(char ch, BMGlyph glyph);
| Parameter | Type | Description |
|---|---|---|
ch | char | |
glyph | BMGlyph |
Source:Core/Text/BitmapFont.cs (line 56)
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/BitmapFont.cs (line 105)
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/BitmapFont.cs (line 72)
GetLineHeight(int)
override public int GetLineHeight(int size);
| Parameter | Type | Description |
|---|---|---|
size | int |
Source:Core/Text/BitmapFont.cs (line 157)
HasCharacter(char)
override public bool HasCharacter(char ch);
| Parameter | Type | Description |
|---|---|---|
ch | char |
Source:Core/Text/BitmapFont.cs (line 152)
SetFormat(TextFormat, float)
override public void SetFormat(TextFormat format, float fontSizeScale);
| Parameter | Type | Description |
|---|---|---|
format | TextFormat | |
fontSizeScale | float |
Source:Core/Text/BitmapFont.cs (line 61)