Stop using FreeType and files for font names.
font_utils_get_font_name_for_file
was used to synchronously load a font file for FreeType serially, leading to significant startup performance issues.
While we should probably consider using pango
, we currently use font-config
's API directly. A major bottle neck is the utility function font_utils_get_font_name_for_file
which caused each font file to be loaded synchronously in a loop upon load. We can construct the font name using font-config
's API, the complicated FreeType stuff sushi does (and font-viewer relied on) is unnecessary.