pub fn display_text(text: &str, placeholder: &str, is_password: bool) -> String
Build the display text for rendering. Returns the string that should be measured/drawn.