format method

format

Format the text with font setting.

def format(self, start_index, length, font, flag):
    ...
ParameterTypeDescription
start_indexintThe start index.
lengthintThe length.
fontFontThe font.
flagStyleFlagThe flags of the font.

See Also