d211c05111
This makes font oversampling work out of the box, while also increasing the supported character set's size. The default font is now larger as well to better fit today's screen resolutions. The OpenSans SemiBold font was chosen for two reasons: - Small file size, yet its character set supports Latin-1 and Cyrillic text. - A heavier font weight looks better in most "game" scenarios and is more readable against mixed-color backgrounds. This is considered a breaking change as it changes the default font's metrics, which will likely affect how Control nodes are laid out in scenes (unless a custom font is in use).
18 lines
490 B
Python
18 lines
490 B
Python
#!/usr/bin/env python
|
|
|
|
Import("env")
|
|
|
|
import os
|
|
import os.path
|
|
from platform_methods import run_in_subprocess
|
|
import default_theme_builders
|
|
|
|
env.add_source_files(env.scene_sources, "*.cpp")
|
|
|
|
env.Depends("#scene/resources/default_theme/default_font.gen.h", "#thirdparty/fonts/OpenSans_SemiBold.ttf")
|
|
env.CommandNoCache(
|
|
"#scene/resources/default_theme/default_font.gen.h",
|
|
"#thirdparty/fonts/OpenSans_SemiBold.ttf",
|
|
run_in_subprocess(default_theme_builders.make_fonts_header),
|
|
)
|