Skip to main content

BitmapFont

Namespace:FairyGUI
Source:Assets/Scripts/Core/Text/BitmapFont.cs (line 9)

public class BitmapFont : BaseFont

Inheritance:BaseFont → BitmapFont

Inherited members​

BaseFont

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);
ParameterTypeDescription
chchar
glyphBMGlyph

Source:Core/Text/BitmapFont.cs (line 56)

DrawGlyph(VertexBuffer, float, float)​

override public void DrawGlyph(VertexBuffer vb, float x, float y);
ParameterTypeDescription
vbVertexBuffer
xfloat
yfloat

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);
ParameterTypeDescription
chchar
widthfloat
heightfloat
baselinefloat

Source:Core/Text/BitmapFont.cs (line 72)

GetLineHeight(int)​

override public int GetLineHeight(int size);
ParameterTypeDescription
sizeint

Source:Core/Text/BitmapFont.cs (line 157)

HasCharacter(char)​

override public bool HasCharacter(char ch);
ParameterTypeDescription
chchar

Source:Core/Text/BitmapFont.cs (line 152)

SetFormat(TextFormat, float)​

override public void SetFormat(TextFormat format, float fontSizeScale);
ParameterTypeDescription
formatTextFormat
fontSizeScalefloat

Source:Core/Text/BitmapFont.cs (line 61)