mirror of
https://github.com/godotengine/godot.git
synced 2024-11-24 13:12:42 +00:00
Convert the editor and default theme fonts to WOFF2 format to save space.
This commit is contained in:
parent
3990152f6b
commit
78051f93a3
@ -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),
|
||||
)
|
||||
|
||||
|
10
thirdparty/README.md
vendored
10
thirdparty/README.md
vendored
@ -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
|
||||
|
BIN
thirdparty/fonts/DroidSansFallback.ttf
vendored
BIN
thirdparty/fonts/DroidSansFallback.ttf
vendored
Binary file not shown.
BIN
thirdparty/fonts/DroidSansFallback.woff2
vendored
Normal file
BIN
thirdparty/fonts/DroidSansFallback.woff2
vendored
Normal file
Binary file not shown.
BIN
thirdparty/fonts/DroidSansJapanese.ttf
vendored
BIN
thirdparty/fonts/DroidSansJapanese.ttf
vendored
Binary file not shown.
BIN
thirdparty/fonts/DroidSansJapanese.woff2
vendored
Normal file
BIN
thirdparty/fonts/DroidSansJapanese.woff2
vendored
Normal file
Binary file not shown.
BIN
thirdparty/fonts/JetBrainsMono_Regular.ttf
vendored
BIN
thirdparty/fonts/JetBrainsMono_Regular.ttf
vendored
Binary file not shown.
BIN
thirdparty/fonts/JetBrainsMono_Regular.woff2
vendored
Normal file
BIN
thirdparty/fonts/JetBrainsMono_Regular.woff2
vendored
Normal file
Binary file not shown.
BIN
thirdparty/fonts/NotoNaskhArabicUI_Bold.ttf
vendored
BIN
thirdparty/fonts/NotoNaskhArabicUI_Bold.ttf
vendored
Binary file not shown.
BIN
thirdparty/fonts/NotoNaskhArabicUI_Bold.woff2
vendored
Normal file
BIN
thirdparty/fonts/NotoNaskhArabicUI_Bold.woff2
vendored
Normal file
Binary file not shown.
BIN
thirdparty/fonts/NotoNaskhArabicUI_Regular.ttf
vendored
BIN
thirdparty/fonts/NotoNaskhArabicUI_Regular.ttf
vendored
Binary file not shown.
BIN
thirdparty/fonts/NotoNaskhArabicUI_Regular.woff2
vendored
Normal file
BIN
thirdparty/fonts/NotoNaskhArabicUI_Regular.woff2
vendored
Normal file
Binary file not shown.
BIN
thirdparty/fonts/NotoSansBengaliUI_Bold.ttf
vendored
BIN
thirdparty/fonts/NotoSansBengaliUI_Bold.ttf
vendored
Binary file not shown.
BIN
thirdparty/fonts/NotoSansBengaliUI_Bold.woff2
vendored
Normal file
BIN
thirdparty/fonts/NotoSansBengaliUI_Bold.woff2
vendored
Normal file
Binary file not shown.
BIN
thirdparty/fonts/NotoSansBengaliUI_Regular.ttf
vendored
BIN
thirdparty/fonts/NotoSansBengaliUI_Regular.ttf
vendored
Binary file not shown.
BIN
thirdparty/fonts/NotoSansBengaliUI_Regular.woff2
vendored
Normal file
BIN
thirdparty/fonts/NotoSansBengaliUI_Regular.woff2
vendored
Normal file
Binary file not shown.
BIN
thirdparty/fonts/NotoSansDevanagariUI_Bold.ttf
vendored
BIN
thirdparty/fonts/NotoSansDevanagariUI_Bold.ttf
vendored
Binary file not shown.
BIN
thirdparty/fonts/NotoSansDevanagariUI_Bold.woff2
vendored
Normal file
BIN
thirdparty/fonts/NotoSansDevanagariUI_Bold.woff2
vendored
Normal file
Binary file not shown.
BIN
thirdparty/fonts/NotoSansDevanagariUI_Regular.ttf
vendored
BIN
thirdparty/fonts/NotoSansDevanagariUI_Regular.ttf
vendored
Binary file not shown.
BIN
thirdparty/fonts/NotoSansDevanagariUI_Regular.woff2
vendored
Normal file
BIN
thirdparty/fonts/NotoSansDevanagariUI_Regular.woff2
vendored
Normal file
Binary file not shown.
BIN
thirdparty/fonts/NotoSansGeorgian_Bold.ttf
vendored
BIN
thirdparty/fonts/NotoSansGeorgian_Bold.ttf
vendored
Binary file not shown.
BIN
thirdparty/fonts/NotoSansGeorgian_Bold.woff2
vendored
Normal file
BIN
thirdparty/fonts/NotoSansGeorgian_Bold.woff2
vendored
Normal file
Binary file not shown.
BIN
thirdparty/fonts/NotoSansGeorgian_Regular.ttf
vendored
BIN
thirdparty/fonts/NotoSansGeorgian_Regular.ttf
vendored
Binary file not shown.
BIN
thirdparty/fonts/NotoSansGeorgian_Regular.woff2
vendored
Normal file
BIN
thirdparty/fonts/NotoSansGeorgian_Regular.woff2
vendored
Normal file
Binary file not shown.
BIN
thirdparty/fonts/NotoSansHebrew_Bold.ttf
vendored
BIN
thirdparty/fonts/NotoSansHebrew_Bold.ttf
vendored
Binary file not shown.
BIN
thirdparty/fonts/NotoSansHebrew_Bold.woff2
vendored
Normal file
BIN
thirdparty/fonts/NotoSansHebrew_Bold.woff2
vendored
Normal file
Binary file not shown.
BIN
thirdparty/fonts/NotoSansHebrew_Regular.ttf
vendored
BIN
thirdparty/fonts/NotoSansHebrew_Regular.ttf
vendored
Binary file not shown.
BIN
thirdparty/fonts/NotoSansHebrew_Regular.woff2
vendored
Normal file
BIN
thirdparty/fonts/NotoSansHebrew_Regular.woff2
vendored
Normal file
Binary file not shown.
BIN
thirdparty/fonts/NotoSansMalayalamUI_Bold.ttf
vendored
BIN
thirdparty/fonts/NotoSansMalayalamUI_Bold.ttf
vendored
Binary file not shown.
BIN
thirdparty/fonts/NotoSansMalayalamUI_Bold.woff2
vendored
Normal file
BIN
thirdparty/fonts/NotoSansMalayalamUI_Bold.woff2
vendored
Normal file
Binary file not shown.
BIN
thirdparty/fonts/NotoSansMalayalamUI_Regular.ttf
vendored
BIN
thirdparty/fonts/NotoSansMalayalamUI_Regular.ttf
vendored
Binary file not shown.
BIN
thirdparty/fonts/NotoSansMalayalamUI_Regular.woff2
vendored
Normal file
BIN
thirdparty/fonts/NotoSansMalayalamUI_Regular.woff2
vendored
Normal file
Binary file not shown.
BIN
thirdparty/fonts/NotoSansOriyaUI_Bold.ttf
vendored
BIN
thirdparty/fonts/NotoSansOriyaUI_Bold.ttf
vendored
Binary file not shown.
BIN
thirdparty/fonts/NotoSansOriyaUI_Bold.woff2
vendored
Normal file
BIN
thirdparty/fonts/NotoSansOriyaUI_Bold.woff2
vendored
Normal file
Binary file not shown.
BIN
thirdparty/fonts/NotoSansOriyaUI_Regular.ttf
vendored
BIN
thirdparty/fonts/NotoSansOriyaUI_Regular.ttf
vendored
Binary file not shown.
BIN
thirdparty/fonts/NotoSansOriyaUI_Regular.woff2
vendored
Normal file
BIN
thirdparty/fonts/NotoSansOriyaUI_Regular.woff2
vendored
Normal file
Binary file not shown.
BIN
thirdparty/fonts/NotoSansSinhalaUI_Bold.ttf
vendored
BIN
thirdparty/fonts/NotoSansSinhalaUI_Bold.ttf
vendored
Binary file not shown.
BIN
thirdparty/fonts/NotoSansSinhalaUI_Bold.woff2
vendored
Normal file
BIN
thirdparty/fonts/NotoSansSinhalaUI_Bold.woff2
vendored
Normal file
Binary file not shown.
BIN
thirdparty/fonts/NotoSansSinhalaUI_Regular.ttf
vendored
BIN
thirdparty/fonts/NotoSansSinhalaUI_Regular.ttf
vendored
Binary file not shown.
BIN
thirdparty/fonts/NotoSansSinhalaUI_Regular.woff2
vendored
Normal file
BIN
thirdparty/fonts/NotoSansSinhalaUI_Regular.woff2
vendored
Normal file
Binary file not shown.
BIN
thirdparty/fonts/NotoSansTamilUI_Bold.ttf
vendored
BIN
thirdparty/fonts/NotoSansTamilUI_Bold.ttf
vendored
Binary file not shown.
BIN
thirdparty/fonts/NotoSansTamilUI_Bold.woff2
vendored
Normal file
BIN
thirdparty/fonts/NotoSansTamilUI_Bold.woff2
vendored
Normal file
Binary file not shown.
BIN
thirdparty/fonts/NotoSansTamilUI_Regular.ttf
vendored
BIN
thirdparty/fonts/NotoSansTamilUI_Regular.ttf
vendored
Binary file not shown.
BIN
thirdparty/fonts/NotoSansTamilUI_Regular.woff2
vendored
Normal file
BIN
thirdparty/fonts/NotoSansTamilUI_Regular.woff2
vendored
Normal file
Binary file not shown.
BIN
thirdparty/fonts/NotoSansTeluguUI_Bold.ttf
vendored
BIN
thirdparty/fonts/NotoSansTeluguUI_Bold.ttf
vendored
Binary file not shown.
BIN
thirdparty/fonts/NotoSansTeluguUI_Bold.woff2
vendored
Normal file
BIN
thirdparty/fonts/NotoSansTeluguUI_Bold.woff2
vendored
Normal file
Binary file not shown.
BIN
thirdparty/fonts/NotoSansTeluguUI_Regular.ttf
vendored
BIN
thirdparty/fonts/NotoSansTeluguUI_Regular.ttf
vendored
Binary file not shown.
BIN
thirdparty/fonts/NotoSansTeluguUI_Regular.woff2
vendored
Normal file
BIN
thirdparty/fonts/NotoSansTeluguUI_Regular.woff2
vendored
Normal file
Binary file not shown.
BIN
thirdparty/fonts/NotoSansThaiUI_Bold.ttf
vendored
BIN
thirdparty/fonts/NotoSansThaiUI_Bold.ttf
vendored
Binary file not shown.
BIN
thirdparty/fonts/NotoSansThaiUI_Bold.woff2
vendored
Normal file
BIN
thirdparty/fonts/NotoSansThaiUI_Bold.woff2
vendored
Normal file
Binary file not shown.
BIN
thirdparty/fonts/NotoSansThaiUI_Regular.ttf
vendored
BIN
thirdparty/fonts/NotoSansThaiUI_Regular.ttf
vendored
Binary file not shown.
BIN
thirdparty/fonts/NotoSansThaiUI_Regular.woff2
vendored
Normal file
BIN
thirdparty/fonts/NotoSansThaiUI_Regular.woff2
vendored
Normal file
Binary file not shown.
BIN
thirdparty/fonts/NotoSans_Bold.ttf
vendored
BIN
thirdparty/fonts/NotoSans_Bold.ttf
vendored
Binary file not shown.
BIN
thirdparty/fonts/NotoSans_Bold.woff2
vendored
Normal file
BIN
thirdparty/fonts/NotoSans_Bold.woff2
vendored
Normal file
Binary file not shown.
BIN
thirdparty/fonts/NotoSans_Regular.ttf
vendored
BIN
thirdparty/fonts/NotoSans_Regular.ttf
vendored
Binary file not shown.
BIN
thirdparty/fonts/NotoSans_Regular.woff2
vendored
Normal file
BIN
thirdparty/fonts/NotoSans_Regular.woff2
vendored
Normal file
Binary file not shown.
BIN
thirdparty/fonts/OpenSans_SemiBold.ttf
vendored
BIN
thirdparty/fonts/OpenSans_SemiBold.ttf
vendored
Binary file not shown.
BIN
thirdparty/fonts/OpenSans_SemiBold.woff2
vendored
Normal file
BIN
thirdparty/fonts/OpenSans_SemiBold.woff2
vendored
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user