try_parse method
Leave feedback
On this page
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.
- class
FontStyles
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.