mirror of https://github.com/godotengine/godot
Merge pull request #59510 from bruvzg/use_woff2_fonts
This commit is contained in:
commit
c21215628d
|
|
@ -166,17 +166,17 @@ Comment: etcpak
|
|||
Copyright: 2013-2021, Bartosz Taudul
|
||||
License: BSD-3-clause
|
||||
|
||||
Files: ./thirdparty/fonts/DroidSans*.ttf
|
||||
Files: ./thirdparty/fonts/DroidSans*.woff2
|
||||
Comment: DroidSans font
|
||||
Copyright: 2008, The Android Open Source Project
|
||||
License: Apache-2.0
|
||||
|
||||
Files: ./thirdparty/fonts/JetBrainsMono_Regular.ttf
|
||||
Files: ./thirdparty/fonts/JetBrainsMono_Regular.woff2
|
||||
Comment: JetBrains Mono font
|
||||
Copyright: 2020, JetBrains s.r.o.
|
||||
License: OFL-1.1
|
||||
|
||||
Files: ./thirdparty/fonts/NotoSans*.ttf
|
||||
Files: ./thirdparty/fonts/NotoSans*.woff2
|
||||
Comment: Noto Sans font
|
||||
Copyright: 2012, Google Inc.
|
||||
License: OFL-1.1
|
||||
|
|
|
|||
|
|
@ -99,6 +99,8 @@ if env["tools"]:
|
|||
# Fonts
|
||||
flist = glob.glob(env.Dir("#thirdparty").abspath + "/fonts/*.ttf")
|
||||
flist.extend(glob.glob(env.Dir("#thirdparty").abspath + "/fonts/*.otf"))
|
||||
flist.extend(glob.glob(env.Dir("#thirdparty").abspath + "/fonts/*.woff"))
|
||||
flist.extend(glob.glob(env.Dir("#thirdparty").abspath + "/fonts/*.woff2"))
|
||||
flist.sort()
|
||||
env.Depends("#editor/builtin_fonts.gen.h", flist)
|
||||
env.CommandNoCache(
|
||||
|
|
|
|||
|
|
@ -422,9 +422,9 @@ void EditorSettings::_load_defaults(Ref<ConfigFile> p_extra_config) {
|
|||
#endif
|
||||
EDITOR_SETTING(Variant::INT, PROPERTY_HINT_ENUM, "interface/editor/font_subpixel_positioning", 1, "Disabled,Auto,One half of a pixel,One quarter of a pixel")
|
||||
|
||||
EDITOR_SETTING(Variant::STRING, PROPERTY_HINT_GLOBAL_FILE, "interface/editor/main_font", "", "*.ttf,*.otf")
|
||||
EDITOR_SETTING(Variant::STRING, PROPERTY_HINT_GLOBAL_FILE, "interface/editor/main_font_bold", "", "*.ttf,*.otf")
|
||||
EDITOR_SETTING(Variant::STRING, PROPERTY_HINT_GLOBAL_FILE, "interface/editor/code_font", "", "*.ttf,*.otf")
|
||||
EDITOR_SETTING(Variant::STRING, PROPERTY_HINT_GLOBAL_FILE, "interface/editor/main_font", "", "*.ttf,*.otf,*.woff,*.woff2,*.pfb,*.pfm")
|
||||
EDITOR_SETTING(Variant::STRING, PROPERTY_HINT_GLOBAL_FILE, "interface/editor/main_font_bold", "", "*.ttf,*.otf,*.woff,*.woff2,*.pfb,*.pfm")
|
||||
EDITOR_SETTING(Variant::STRING, PROPERTY_HINT_GLOBAL_FILE, "interface/editor/code_font", "", "*.ttf,*.otf,*.woff,*.woff2,*.pfb,*.pfm")
|
||||
EDITOR_SETTING_USAGE(Variant::FLOAT, PROPERTY_HINT_RANGE, "interface/editor/low_processor_mode_sleep_usec", 6900, "1,100000,1", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_RESTART_IF_CHANGED)
|
||||
// Default unfocused usec sleep is for 10 FPS. Allow an unfocused FPS limit
|
||||
// as low as 1 FPS for those who really need low power usage (but don't need
|
||||
|
|
|
|||
|
|
@ -8,10 +8,10 @@ import default_theme_icons_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.Depends("#scene/resources/default_theme/default_font.gen.h", "#thirdparty/fonts/OpenSans_SemiBold.woff2")
|
||||
env.CommandNoCache(
|
||||
"#scene/resources/default_theme/default_font.gen.h",
|
||||
"#thirdparty/fonts/OpenSans_SemiBold.ttf",
|
||||
"#thirdparty/fonts/OpenSans_SemiBold.woff2",
|
||||
run_in_subprocess(default_theme_builders.make_fonts_header),
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -130,25 +130,25 @@ Files extracted from upstream source:
|
|||
|
||||
## fonts
|
||||
|
||||
- `NotoSans*.ttf`, `NotoNaskhArabicUI_*.ttf`:
|
||||
- `NotoSans*.woff2`, `NotoNaskhArabicUI_*.woff2`:
|
||||
* Upstream: https://github.com/googlefonts/noto-fonts
|
||||
* Version: v2017-10-24-phase3-second-cleanup
|
||||
* License: OFL-1.1
|
||||
* Comment: Use UI font variant if available, because it has tight vertical metrics and
|
||||
good for UI.
|
||||
- `JetBrainsMono_Regular.ttf`:
|
||||
- `JetBrainsMono_Regular.woff2`:
|
||||
* Upstream: https://github.com/JetBrains/JetBrainsMono
|
||||
* Version: 2.242
|
||||
* License: OFL-1.1
|
||||
- `DroidSans*.ttf`:
|
||||
- `DroidSans*.woff2`:
|
||||
* Upstream: https://android.googlesource.com/platform/frameworks/base/+/master/data/fonts/
|
||||
* Version: ? (pre-2014 commit when DroidSansJapanese.ttf was obsoleted)
|
||||
* License: Apache 2.0
|
||||
- `OpenSans_SemiBold.ttf`:
|
||||
- `OpenSans_SemiBold.woff2`:
|
||||
* Upstream: https://fonts.google.com/specimen/Open+Sans
|
||||
* Version: 1.10 (downloaded from Google Fonts in February 2021)
|
||||
* License: Apache 2.0
|
||||
|
||||
- All fonts are converted from the `.ttf` sources using `https://github.com/google/woff2` tool.
|
||||
|
||||
|
||||
## freetype
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue