try_parse method

On this page

try_parse

Tries to parse specified raw string as a font style name.

def try_parse(cls, style, parsed):
    ...
Parameter Type Description
style str String that should be parsed as a font style.
parsed FontStyles Parsed font style on success or FontStyles.Regular on failure.

Returns: bool: True if string was successfully parsed as a correct font style; False otherwise.

See Also

On this page