1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-12 08:05:18 +02:00

Improve TTF support for pixel-style fonts (#11848)

This commit is contained in:
Vincent Robinson
2021-12-30 12:54:21 -08:00
committed by GitHub
parent 14c7fae378
commit 4a16ab3585
4 changed files with 41 additions and 10 deletions

View File

@@ -1055,6 +1055,12 @@
# type: int min: 1
# font_size = 16
# For pixel-style fonts that do not scale well, this ensures that font sizes used
# with this font will always be divisible by this value, in pixels. For instance,
# a pixel font 16 pixels tall should have this set to 16, so it will only ever be
# sized 16, 32, 48, etc., so a mod requesting a size of 25 will get 32.
# font_size_divisible_by = 1
# Path to the default font.
# If “freetype” setting is enabled: Must be a TrueType font.
# If “freetype” setting is disabled: Must be a bitmap or XML vectors font.
@@ -1073,7 +1079,13 @@
# Font size of the monospace font in point (pt).
# type: int min: 1
# mono_font_size = 15
# mono_font_size = 16
# For pixel-style fonts that do not scale well, this ensures that font sizes used
# with this font will always be divisible by this value, in pixels. For instance,
# a pixel font 16 pixels tall should have this set to 16, so it will only ever be
# sized 16, 32, 48, etc., so a mod requesting a size of 25 will get 32.
# mono_font_size_divisible_by = 1
# Path to the monospace font.
# If “freetype” setting is enabled: Must be a TrueType font.