mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-25 02:32:58 +00:00

This selects DejaVu Sans Mono instead of whatever sans serif font is the default for the current locale is. I'm not entirely sure what to do to handle non-Western European languages since this is intended to be used for displaying code or debug info anyway. Because I can't be bothered to figure out how the codepoint fallback works for GUI1, I'm only adding support for using this with the Pango/Cairo ttext wrapper, which is used by GUI2. I'm also leaving it up to fontconfig to find the correct font file for the font when selected. Hopefully this will suffice for now.