Companion object for the Text class providing utility functions.
Builds a Text object by applying the given block to a StringBuilder.