manimpango.register_font¶
-
register_font
()¶ This function registers the font file using
fontconfig
so that it is available for use by Pango. :param font_path: Relative or absolute path to font file. :type font_path:str
- Returns
True means it worked without any error. False means there was an unknown error
- Return type
Examples
>>> register_font("/home/roboto.tff") 1
- Raises
AssertionError – Font is missing.