The available text length along one rotated line within contentHeight.
A strip of thickness lineHeight at angle θ spans w·|sin θ| + lineHeight·|cos θ| vertically;
solving for the length that exactly fills the height gives
(contentHeight - lineHeight·|cos θ|) / |sin θ|. At ±90° this degenerates to contentHeight.
Clamped to ≥ 1 so a too-short row still lays out (and wraps per-character like a too-narrow
column does).
The available text length along one rotated line within
contentHeight.A strip of thickness
lineHeightat angle θ spansw·|sin θ| + lineHeight·|cos θ|vertically; solving for the length that exactly fills the height gives(contentHeight - lineHeight·|cos θ|) / |sin θ|. At ±90° this degenerates tocontentHeight. Clamped to ≥ 1 so a too-short row still lays out (and wraps per-character like a too-narrow column does).