Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • Measures a glyph using the current font without exposing its native font handle.

API: engine
Project: Inno.Editor.ImGui

public System.Numerics.Vector4 Inno.Editor.ImGui.ImGuiWidget.ImGuiWidget.GetGlyphVisualBounds(float fontSize, string text)

Parameter fontSize: The positive baked font size.

Parameter text: A nonempty string whose first Unicode scalar identifies the glyph.

The glyph’s visible left, top, right and bottom offsets.

Exception T:System.ArgumentException: The glyph text is empty.