跳到主要内容

BitmapFont

命名空间:FairyGUI
源码:Assets/Scripts/Core/Text/BitmapFont.cs (行 9)

public class BitmapFont : BaseFont

继承:BaseFont → BitmapFont

继承成员​

BaseFont

SupOffset, SupScale, canTint, customBoldAndItalic, customBold, customOutline, keepCrisp, mainTexture, name, shader, textRebuildFlag, version, BuildGraphics, Dispose, DrawLine, Prepare, PrepareCharacters, StartDraw

构造函数​

BitmapFont()​

public BitmapFont();

源码:Core/Text/BitmapFont.cs (行 45)

字段​

_dict​

protected Dictionary<int, BMGlyph> _dict;

源码:Core/Text/BitmapFont.cs (行 41)

_glyph​

protected BMGlyph _glyph;

源码:Core/Text/BitmapFont.cs (行 42)

hasChannel​

public bool hasChannel;

Font generated by BMFont use channels.

源码:Core/Text/BitmapFont.cs (行 39)

resizable​

public bool resizable;

源码:Core/Text/BitmapFont.cs (行 34)

size​

public int size;

源码:Core/Text/BitmapFont.cs (行 29)

方法​

AddChar(char, BMGlyph)​

public void AddChar(char ch, BMGlyph glyph);
参数类型说明
chchar
glyphBMGlyph

源码:Core/Text/BitmapFont.cs (行 56)

DrawGlyph(VertexBuffer, float, float)​

override public void DrawGlyph(VertexBuffer vb, float x, float y);
参数类型说明
vbVertexBuffer
xfloat
yfloat

源码:Core/Text/BitmapFont.cs (行 105)

GetGlyph(char, float, float, float)​

override public bool GetGlyph(char ch, out float width, out float height, out float baseline);
参数类型说明
chchar
widthfloat
heightfloat
baselinefloat

源码:Core/Text/BitmapFont.cs (行 72)

GetLineHeight(int)​

override public int GetLineHeight(int size);
参数类型说明
sizeint

源码:Core/Text/BitmapFont.cs (行 157)

HasCharacter(char)​

override public bool HasCharacter(char ch);
参数类型说明
chchar

源码:Core/Text/BitmapFont.cs (行 152)

SetFormat(TextFormat, float)​

override public void SetFormat(TextFormat format, float fontSizeScale);
参数类型说明
formatTextFormat
fontSizeScalefloat

源码:Core/Text/BitmapFont.cs (行 61)