API reference
Preparing search index…

ImGui.SetWindowFontScale

  • Set the font scale for the current window.

    Parameters

    scale
    number

    Scale multiplier applied to the existing font size or style dimensions.

    Returns

    void

    [OBSOLETE] set font scale.

    To scale fonts in all windows, adjust FontGlobalScale on the IO field view returned by ImGui.viewImGuiIO(ioHandle).

    This is an old API!

    For correct scaling, prefer to reload font + rebuild ImFontAtlas + call ImGui.Style_ScaleAllSizes(styleHandle, scaleFactor).

    Source & inheritance

Icons made by Lorc, Delapouite & Skoll · game-icons.net · CC BY 3.0