Skip to main content

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
TypeName
ImGuiNET.ImFontConfigPtrsrc_cfg
System.UInt16c
System.Int32texture_index
System.Singlex0
System.Singley0
System.Singlex1
System.Singley1
System.Singleu0
System.Singlev0
System.Singleu1
System.Singlev1
System.Singleadvance_x

AddKerningPair(ushort, ushort, float)

View Source
Declaration
public void AddKerningPair(ushort left_c, ushort right_c, float distance_adjustment)
Parameters
TypeName
System.UInt16left_c
System.UInt16right_c
System.Singledistance_adjustment

AddRemapChar(ushort, ushort)

View Source
Declaration
public void AddRemapChar(ushort dst, ushort src)
Parameters
TypeName
System.UInt16dst
System.UInt16src

AddRemapChar(ushort, ushort, bool)

View Source
Declaration
public void AddRemapChar(ushort dst, ushort src, bool overwrite_dst)
Parameters
TypeName
System.UInt16dst
System.UInt16src
System.Booleanoverwrite_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

ImGuiNET.ImFontGlyphPtr

Parameters
TypeName
System.UInt16c

FindGlyphNoFallback(ushort)

View Source
Declaration
public ImFontGlyphPtr FindGlyphNoFallback(ushort c)
Returns

ImGuiNET.ImFontGlyphPtr

Parameters
TypeName
System.UInt16c

GetCharAdvance(ushort)

View Source
Declaration
public float GetCharAdvance(ushort c)
Returns

System.Single

Parameters
TypeName
System.UInt16c

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
TypeName
System.UInt16left_c
System.UInt16right_c

GetDistanceAdjustmentForPairFromHotData(ushort, ImFontGlyphHotDataPtr)

View Source
Declaration
public float GetDistanceAdjustmentForPairFromHotData(ushort left_c, ImFontGlyphHotDataPtr right_c_info)
Returns

System.Single

Parameters
TypeName
System.UInt16left_c
ImGuiNET.ImFontGlyphHotDataPtrright_c_info

GrowIndex(int)

View Source
Declaration
public void GrowIndex(int new_size)
Parameters
TypeName
System.Int32new_size

IsLoaded()

View Source
Declaration
public bool IsLoaded()
Returns

System.Boolean

RenderChar(ImDrawListPtr, float, Vector2, uint, ushort)

View Source
Declaration
public void RenderChar(ImDrawListPtr draw_list, float size, Vector2 pos, uint col, ushort c)
Parameters
TypeName
ImGuiNET.ImDrawListPtrdraw_list
System.Singlesize
System.Numerics.Vector2pos
System.UInt32col
System.UInt16c

SetGlyphVisible(ushort, bool)

View Source
Declaration
public void SetGlyphVisible(ushort c, bool visible)
Parameters
TypeName
System.UInt16c
System.Booleanvisible