Skip to content

Stop using FreeType and files for font names.

Evan Welsh requested to merge ewlsh/remove-ft-file-loading into master

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.

Merge request reports