C# Class ImGuiNET.NativeFont

显示文件 Open project: mellinoe/ImGui.NET Class Usage Examples

Public Properties

Property Type Description
Ascent float
ConfigData System.IntPtr
ConfigDataCount int
ContainerAtlas System.IntPtr
DisplayOffset Vector2
FallbackChar ushort
FallbackGlyph Glyph*
FallbackXAdvance float
FontSize float
Glyphs ImVector
IndexLookup ImVector
IndexXAdvance ImVector
Scale float

Property Details

Ascent public_oe property

Ascent: distance from top to bottom of e.g. 'A' [0..FontSize]
public float Ascent
return float

ConfigData public_oe property

ImFontConfig*. Pointer within ImFontAtlas->ConfigData
public IntPtr,System ConfigData
return System.IntPtr

ConfigDataCount public_oe property

public int ConfigDataCount
return int

ContainerAtlas public_oe property

ImFontAtlas*
public IntPtr,System ContainerAtlas
return System.IntPtr

DisplayOffset public_oe property

Offset font rendering by xx pixels. Default value: (0.0f, 1.0f)
public Vector2 DisplayOffset
return Vector2

FallbackChar public_oe property

Replacement glyph if one isn't found. Only set via SetFallbackChar() Default value: '?'
public ushort FallbackChar
return ushort

FallbackGlyph public_oe property

Equivalent to FindGlyph(FontFallbackChar)
public Glyph* FallbackGlyph
return Glyph*

FallbackXAdvance public_oe property

public float FallbackXAdvance
return float

FontSize public_oe property

Height of characters, set during loading (don't change after loading). Default value: [user-set]
public float FontSize
return float

Glyphs public_oe property

ImVector(Glyph)
public ImVector,ImGuiNET Glyphs
return ImVector

IndexLookup public_oe property

Sparse. Index glyphs by Unicode code-point.
public ImVector,ImGuiNET IndexLookup
return ImVector

IndexXAdvance public_oe property

Sparse. Glyphs->XAdvance directly indexable (more cache-friendly that reading from Glyphs, for CalcTextSize functions which are often bottleneck in large UI).
public ImVector,ImGuiNET IndexXAdvance
return ImVector

Scale public_oe property

Base font scale, multiplied by the per-window font scale which you can adjust with SetFontScale() Default value: 1.0f.
public float Scale
return float