withFont

Retains this text with a resource-pack font identifier without loading resources or changing its content.

This synchronous operation returns an immutable wrapper and preserves the receiver's ownership and thread-safety contract. Resource lookup and missing-font behavior belong to the runtime that later resolves the wrapper. An explicit font already nested within this text takes precedence over the inherited font.

Receiver

unresolved text to render with the selected font.

Return

a new unresolved text value carrying font.

Parameters

font

structural resource identifier of the font definition.