manimpango.unregister_font#
- unregister_font(font_path)#
This function unregister (removes) the font file using native OS API. It is mostly optional to call this. Mainly used in tests. On Linux it is aliased to
fc_unregister_font()
and on Windows and macOS it uses the native API.- Parameters:
font_path (
str
) – Relative or absolute path to font file.- Returns:
True means it worked without any error. False means there was an unknown error
- Return type:
bool
Examples
>>> unregister_font("C:/home/roboto.tff") True
- Raises:
AssertionError – The :param:`font_path` specified doesn’t exist.
- Parameters:
font_path (str) –
- Return type:
None