Struct ImFontPtr
Assembly: ImGui.NET.dll
View Source
Declaration
public struct ImFontPtr
Properties
NativePtr
View Source
Declaration
public readonly ImFont* NativePtr { get; }
IndexedHotData
View Source
Declaration
public ImPtrVector<ImFontGlyphHotDataPtr> IndexedHotData { get; }
FrequentKerningPairs
View Source
Declaration
public ImVector<float> FrequentKerningPairs { get; }
FontSize
View Source
Declaration
public ref float FontSize { get; }
IndexLookup
View Source
Declaration
public ImVector<ushort> IndexLookup { get; }
Glyphs
View Source
Declaration
public ImPtrVector<ImFontGlyphPtr> Glyphs { get; }
FallbackGlyph
View Source
Declaration
public ImFontGlyphPtr FallbackGlyph { get; }
FallbackHotData
View Source
Declaration
public ImFontGlyphHotDataPtr FallbackHotData { get; }
KerningPairs
View Source
Declaration
public ImPtrVector<ImFontKerningPairPtr> KerningPairs { get; }
ContainerAtlas
View Source
Declaration
public ImFontAtlasPtr ContainerAtlas { get; }
ConfigData
View Source
Declaration
public ImFontConfigPtr ConfigData { get; }
ConfigDataCount
View Source
Declaration
public ref short ConfigDataCount { get; }
FallbackChar
View Source
Declaration
public ref ushort FallbackChar { get; }
EllipsisChar
View Source
Declaration
public ref ushort EllipsisChar { get; }
DotChar
View Source
Declaration
public ref ushort DotChar { get; }
DirtyLookupTables
View Source
Declaration
public ref bool DirtyLookupTables { get; }
Scale
View Source
Declaration
public ref float Scale { get; }
Ascent
View Source
Declaration
public ref float Ascent { get; }
Descent
View Source
Declaration
public ref float Descent { get; }
MetricsTotalSurface
View Source
Declaration
public ref int MetricsTotalSurface { get; }
Used4kPagesMap
View Source
Declaration
public RangeAccessor<byte> Used4kPagesMap { get; }
Methods
AddGlyph(ImFontConfigPtr, ushort, int, float, float, float, float, float, float, float, float, float)
View Source
Declaration
public void AddGlyph(ImFontConfigPtr src_cfg, ushort c, int texture_index, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advance_x)
Parameters
Type | Name |
---|---|
ImGuiNET.ImFontConfigPtr | src_cfg |
System.UInt16 | c |
System.Int32 | texture_index |
System.Single | x0 |
System.Single | y0 |
System.Single | x1 |
System.Single | y1 |
System.Single | u0 |
System.Single | v0 |
System.Single | u1 |
System.Single | v1 |
System.Single | advance_x |
AddKerningPair(ushort, ushort, float)
View Source
Declaration
public void AddKerningPair(ushort left_c, ushort right_c, float distance_adjustment)
Parameters
Type | Name |
---|---|
System.UInt16 | left_c |
System.UInt16 | right_c |
System.Single | distance_adjustment |
AddRemapChar(ushort, ushort)
View Source
Declaration
public void AddRemapChar(ushort dst, ushort src)
Parameters
Type | Name |
---|---|
System.UInt16 | dst |
System.UInt16 | src |
AddRemapChar(ushort, ushort, bool)
View Source
Declaration
public void AddRemapChar(ushort dst, ushort src, bool overwrite_dst)
Parameters
Type | Name |
---|---|
System.UInt16 | dst |
System.UInt16 | src |
System.Boolean | overwrite_dst |
BuildLookupTable()
View Source
Declaration
public void BuildLookupTable()
ClearOutputData()
View Source
Declaration
public void ClearOutputData()
Destroy()
View Source
Declaration
public void Destroy()
FindGlyph(ushort)
View Source
Declaration
public ImFontGlyphPtr FindGlyph(ushort c)
Returns
Parameters
Type | Name |
---|---|
System.UInt16 | c |
FindGlyphNoFallback(ushort)
View Source
Declaration
public ImFontGlyphPtr FindGlyphNoFallback(ushort c)
Returns
Parameters
Type | Name |
---|---|
System.UInt16 | c |
GetCharAdvance(ushort)
View Source
Declaration
public float GetCharAdvance(ushort c)
Returns
System.Single
Parameters
Type | Name |
---|---|
System.UInt16 | c |
GetDebugName()
View Source
Declaration
public string GetDebugName()
Returns
System.String
GetDistanceAdjustmentForPair(ushort, ushort)
View Source
Declaration
public float GetDistanceAdjustmentForPair(ushort left_c, ushort right_c)
Returns
System.Single
Parameters
Type | Name |
---|---|
System.UInt16 | left_c |
System.UInt16 | right_c |
GetDistanceAdjustmentForPairFromHotData(ushort, ImFontGlyphHotDataPtr)
View Source
Declaration
public float GetDistanceAdjustmentForPairFromHotData(ushort left_c, ImFontGlyphHotDataPtr right_c_info)
Returns
System.Single
Parameters
Type | Name |
---|---|
System.UInt16 | left_c |
ImGuiNET.ImFontGlyphHotDataPtr | right_c_info |