ADR 0002: One width method per process

Context

Bubble Tea measures text two ways: grapheme clusters (the default, GraphemeWidth) or code points as wcwidth does (WcWidth, for terminals that measure that way). The renderer, the layout helpers in tea::style and every component measure text, and they must agree, or a frame is drawn with cells the terminal does not have.

Decision

The width method is set once per process and read wherever text is measured. It is not passed through View.

Consequences