Synced
ImGuiWidget.GetGlyphVisualBounds
Section titled “ImGuiWidget.GetGlyphVisualBounds”
- Measures a glyph using the current font without exposing its native font handle.
Required contracts
Section titled “Required contracts”API: scripting
Project: Inno.Editor.ImGui
Scope: Editor
Declaration
Section titled “Declaration”public System.Numerics.Vector4 InnoEditor.ImGui.ImGuiWidget.GetGlyphVisualBounds(float fontSize, string text)Parameters
Section titled “Parameters”Parameter fontSize: The positive baked font size.
Parameter text: A nonempty string whose first Unicode scalar identifies the glyph.
Returns
Section titled “Returns”The glyph’s visible left, top, right and bottom offsets.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentException: The glyph text is empty.