1. A method comprising: obtaining, by an electronic device, two or more attributed text strings to be rendered in a user interface (UI) for display on a screen of the electronic device, each attributed text string having a type style; dynamically adjusting text layout rules for arranging the attributed text strings in the UI in response to input; and rendering the attributed text strings in the UI according to the type styles and the dynamically adjusted text layout rule.