This function registers the font file using
fontconfigso that it is available for use by Pango. On Linux it is aliased to
register_font()and on Windows and macOS this would work only when using
str) – Relative or absolute path to font file.
True means it worked without any error. False means there was an unknown error
- Return type
>>> register_font("/home/roboto.tff") True
AssertionError – Font is missing.