BitmapFont
命名空间:FairyGUI
源码:Assets/Scripts/Core/Text/BitmapFont.cs (行 9)
public class BitmapFont : BaseFont
继承:BaseFont → BitmapFont
继承成员
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);
| 参数 | 类型 | 说明 |
|---|---|---|
ch | char | |
glyph | BMGlyph |
源码:Core/Text/BitmapFont.cs (行 56)
DrawGlyph(VertexBuffer, float, float)
override public void DrawGlyph(VertexBuffer vb, float x, float y);
| 参数 | 类型 | 说明 |
|---|---|---|
vb | VertexBuffer | |
x | float | |
y | float |
源码: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);
| 参数 | 类型 | 说明 |
|---|---|---|
ch | char | |
width | float | |
height | float | |
baseline | float |
源码:Core/Text/BitmapFont.cs (行 72)
GetLineHeight(int)
override public int GetLineHeight(int size);
| 参数 | 类型 | 说明 |
|---|---|---|
size | int |
源码:Core/Text/BitmapFont.cs (行 157)
HasCharacter(char)
override public bool HasCharacter(char ch);
| 参数 | 类型 | 说明 |
|---|---|---|
ch | char |
源码:Core/Text/BitmapFont.cs (行 152)
SetFormat(TextFormat, float)
override public void SetFormat(TextFormat format, float fontSizeScale);
| 参数 | 类型 | 说明 |
|---|---|---|
format | TextFormat | |
fontSizeScale | float |
源码:Core/Text/BitmapFont.cs (行 61)