Table of Contents

Enum SizingMode

Namespace
RatatuiUnity

How RatatuiRenderer interprets the fontSize inspector value. Cols × rows are always preserved; only the per-cell pixel scale changes. Modeled after CSS viewport-relative length units.

public enum SizingMode

Fields

Pixel = 0

fontSize is taken as absolute pixels. The terminal is created once at Awake and never refits.

Vh = 1

fontSize is interpreted as percent of viewport height (fontSize × viewportHeight / 100). Refits on resize / DPI change. Mirrors CSS vh.

Vmax = 4

fontSize is interpreted as percent of the larger viewport dimension (fontSize × max(viewportWidth, viewportHeight) / 100). Mirrors CSS vmax.

Vmin = 3

fontSize is interpreted as percent of the smaller viewport dimension (fontSize × min(viewportWidth, viewportHeight) / 100). Best general choice for terminals that should stay readable in both portrait and landscape. Mirrors CSS vmin.

Vw = 2

fontSize is interpreted as percent of viewport width (fontSize × viewportWidth / 100). Refits on resize / DPI change. Mirrors CSS vw.