FontNotFoundError ¶
FontNotFoundError(message: str, *, path: str)
Bases: ggrust.errors.GgrustError, builtins.FileNotFoundError
Raised when a font file or directory to register does not exist.
Parameters:
-
message(str) –The full message.
-
path(str) –The path that was given.
Examples:
>>> from ggrust import register_font
>>> from ggrust.errors import FontNotFoundError
>>> try:
... register_font("missing/Arial.ttf")
... except FontNotFoundError as error:
... print(error.path)
missing/Arial.ttf