Handle more font options, restore uppercase letters, make cursor position a size_type