Skip to content

Fixes pango_win32_font_map_load_font when font contains fallback families

txe requested to merge txe/pango:issue-482 into master

Fixes #482 (closed)

pango_win32_font_map_load_font tried to find font for "Calibri,Sans" family instead of separate "Calibri" and "Sans" families.

Also, I added that best_match is searched only in one family instead of trying to find the best match in all families because otherwise pango_win32_font_map_load_font would always return "Sans" instead of "Calibri".

The fix is important for cherrytree application (https://github.com/giuspen/cherrytree) to use fallback fonts which work on Linux but not on Win32.

Merge request reports