
This removes all functions related to: * GUI1 font formatting * GUI1 font rendering * Manual text surface size calculations * The font description interface. While it wasn't exclusive to the TTF rendering system, it was unused by Pango/Cairo rendering. A huge chunk of the help browser code was commented out since we don't have font::line_width anymore. Likewise, a hack was added to the GUI2 text box since we don't have have get_max_height anymore. font::is_cjk_char was retained (as well as some related helpers) since they might be useful later. I'll leave it to someone else to update the CMake/Scons files to remove TTF as a build dependency.
32 lines
1.3 KiB
INI
32 lines
1.3 KiB
INI
#textdomain wesnoth
|
|
|
|
[fonts]
|
|
# NOTE: font order keys are marked as translatable to allow translators to
|
|
# provide different font orders: one just has to install the missing fonts
|
|
# or add them to wesnoth/fonts.
|
|
|
|
#
|
|
# Pango text-related keys.
|
|
#
|
|
# All respective font files are automatically loaded.
|
|
#
|
|
# NOTE: these are technically supposed to be lists to provide fallbacks
|
|
# like the SDL_TTF code does. However, there's a weird bug in Pango itself
|
|
# where a comma seperated list of fonts will result in newlines not being
|
|
# rendered and font space metrics being off on Windows.
|
|
#
|
|
# Additionally, despite what one might assume, "Lato" doesn't appear to
|
|
# load all Lato font variants (it has a bunch of different weight ones).
|
|
# I had thought one could specify different weights and Pango would
|
|
# automatically use the variant for that weight, but no dice. Instead, we
|
|
# need to set the weight variant we want as the distired font familt at
|
|
# render time. Right now we only have use of a "light" variant, but others
|
|
# could be added at some point.
|
|
#
|
|
# -- vultraz, 2018-02-14
|
|
#
|
|
family_order= _ "Lato"
|
|
family_order_monospace= _ "DejaVu Sans Mono"
|
|
family_order_light= _ "Lato Light"
|
|
family_order_script = _ "Oldania ADF Std"
|
|
[/fonts]
|