app_server: Switch default UI font to Noto Sans.

fixes #18793

Change-Id: If53229acd6c00e1a800c6808f3f0261ae59d99bb
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7400
Tested-by: Commit checker robot <[email protected]>
Haiku-Format: Haiku-format Bot <[email protected]>
Reviewed-by: Fredrik Holmqvist <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
Reviewed-by: nephele nephele <[email protected]>
This commit is contained in:
Jérôme Duval
2024-02-13 12:01:31 +00:00
committed by Adrien Destugues
parent 0f792e577c
commit 4d6b8a5796
3 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -29,13 +29,13 @@
// system fonts.
#define DEFAULT_FONT_SIZE 12.0f
#define DEFAULT_PLAIN_FONT_FAMILY "Noto Sans Display"
#define DEFAULT_PLAIN_FONT_FAMILY "Noto Sans"
#define DEFAULT_PLAIN_FONT_STYLE "Regular"
#define FALLBACK_PLAIN_FONT_FAMILY "Noto Sans Thai"
#define FALLBACK_PLAIN_FONT_STYLE "Regular"
#define DEFAULT_BOLD_FONT_FAMILY "Noto Sans Display"
#define DEFAULT_BOLD_FONT_FAMILY "Noto Sans"
#define DEFAULT_BOLD_FONT_STYLE "Bold"
#define FALLBACK_BOLD_FONT_FAMILY "Noto Sans Thai"
+4 -4
View File
@@ -353,12 +353,12 @@ GlobalFontManager::_LoadRecentFontMappings()
ttfontsPath.Append("ttfonts");
BPath veraFontPath = ttfontsPath;
veraFontPath.Append("NotoSansDisplay-Regular.ttf");
_AddDefaultMapping("Noto Sans Display", "Book", veraFontPath.Path());
veraFontPath.Append("NotoSans-Regular.ttf");
_AddDefaultMapping("Noto Sans", "Book", veraFontPath.Path());
veraFontPath.SetTo(ttfontsPath.Path());
veraFontPath.Append("NotoSansDisplay-Bold.ttf");
_AddDefaultMapping("Noto Sans Display", "Bold", veraFontPath.Path());
veraFontPath.Append("NotoSans-Bold.ttf");
_AddDefaultMapping("Noto Sans", "Bold", veraFontPath.Path());
veraFontPath.SetTo(ttfontsPath.Path());
veraFontPath.Append("NotoSansMono-Regular.ttf");
+1 -1
View File
@@ -416,7 +416,7 @@ GlyphLayoutEngine::PopulateFallbacks(
// and b) be similar to the original font. So there should be a mapping
// of some kind to know the most suitable fallback font.
static const char* fallbacks[] = {
"Noto Sans Display",
"Noto Sans",
"Noto Sans Thai",
"Noto Sans CJK JP",
"Noto Sans Cherokee",