Set Noto Sans Mono as monospace default font
Should help improve [1].
[1]: https://github.com/haikuports/haikuports/issues/3116
Change-Id: I29dd94e3380c3a5935d47d97e2a2ac1c5fb7e774
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3070
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
Diff
docs/interface_guidelines/haiku.css | 2 +-
src/servers/app/ServerConfig.h | 2 +-
src/kits/network/libnetapi/GopherRequest.cpp | 2 +-
src/servers/app/font/FontManager.cpp | 4 ++--
4 files changed, 5 insertions(+), 5 deletions(-)
@@ -12,7 +12,7 @@
}
cmdsynopsis, code, command, computeroutput, envar, filename, keycode, keysym,
literal, option, parameter, sgmltag, systemitem {
font-family: "Noto Mono", Courier, "Courier New", monospace, fixed;
font-family: "Noto Sans Mono", Courier, "Courier New", monospace, fixed;
}
term {
font-weight: bold;
@@ -35,7 +35,7 @@
#define FALLBACK_BOLD_FONT_FAMILY "Swis721 BT"
#define DEFAULT_BOLD_FONT_STYLE "Bold"
#define DEFAULT_BOLD_FONT_SIZE 12.0f
#define DEFAULT_FIXED_FONT_FAMILY "Noto Mono"
#define DEFAULT_FIXED_FONT_FAMILY "Noto Sans Mono"
#define FALLBACK_FIXED_FONT_FAMILY "Courier10 BT"
#define DEFAULT_FIXED_FONT_STYLE "Regular"
#define DEFAULT_FIXED_FONT_SIZE 12.0f
@@ -143,7 +143,7 @@
"body#gopher span {\n"
" margin-left: 1em;\n"
" padding-left: 2em;\n"
" font-family: 'Noto Mono', Courier, monospace;\n"
" font-family: 'Noto Sans Mono', Courier, monospace;\n"
" word-wrap: break-word;\n"
" white-space: pre-wrap; }\n"
"\n"
@@ -342,8 +342,8 @@
_AddDefaultMapping("Noto Sans Display", "Bold", veraFontPath.Path());
veraFontPath.SetTo(ttfontsPath.Path());
veraFontPath.Append("NotoMono-Regular.ttf");
_AddDefaultMapping("Noto Mono", "Regular", veraFontPath.Path());
veraFontPath.Append("NotoSansMono-Regular.ttf");
_AddDefaultMapping("Noto Sans Mono", "Regular", veraFontPath.Path());
return true;
}