you can slice a formattedString and keep the formatting: txt = FormattedString() txt += "hello World" sub = txt[0:5] print(sub)