Ticket #13810: 0001-Switch-default-fixed-font-from-NotoMono-to-NotoSansM.patch

File 0001-Switch-default-fixed-font-from-NotoMono-to-NotoSansM.patch, 2.7 KB (added by humdinger, 7 years ago)

Switch to NotoSansMono

  • docs/interface_guidelines/haiku.css

    From 35353d41bb0e3a395c5473be6a0486119ecb6b33 Mon Sep 17 00:00:00 2001
    From: Humdinger <humdingerb@gmail.com>
    Date: Sat, 25 Nov 2017 20:41:07 +0100
    Subject: [PATCH] Switch default fixed font from NotoMono to NotoSansMono
    
    ---
     docs/interface_guidelines/haiku.css          | 2 +-
     src/kits/network/libnetapi/GopherRequest.cpp | 2 +-
     src/servers/app/ServerConfig.h               | 2 +-
     src/servers/app/font/FontManager.cpp         | 4 ++--
     4 files changed, 5 insertions(+), 5 deletions(-)
    
    diff --git a/docs/interface_guidelines/haiku.css b/docs/interface_guidelines/haiku.css
    index cdd108d..ed5c6a9 100644
    a b  
    1212}
    1313cmdsynopsis, code, command, computeroutput, envar, filename, keycode, keysym,
    1414literal, option, parameter, sgmltag, systemitem {
    15     font-family: "Noto Mono", Courier, "Courier New", monospace, fixed;
     15    font-family: "Noto Sans Mono", Courier, "Courier New", monospace, fixed;
    1616}
    1717term {
    1818  font-weight: bold;
  • src/kits/network/libnetapi/GopherRequest.cpp

    diff --git a/src/kits/network/libnetapi/GopherRequest.cpp b/src/kits/network/libnetapi/GopherRequest.cpp
    index 8b4bf68..1612227 100644
    a b static const char *kStyleSheet = "\n"  
    143143"body#gopher span {\n"
    144144"   margin-left: 1em;\n"
    145145"   padding-left: 2em;\n"
    146 "   font-family: 'Noto Mono', Courier, monospace;\n"
     146"   font-family: 'Noto Sans Mono', Courier, monospace;\n"
    147147"   word-wrap: break-word;\n"
    148148"   white-space: pre-wrap; }\n"
    149149"\n"
  • src/servers/app/ServerConfig.h

    diff --git a/src/servers/app/ServerConfig.h b/src/servers/app/ServerConfig.h
    index 6416516..51427c5 100644
    a b  
    3535#define FALLBACK_BOLD_FONT_FAMILY "Swis721 BT"
    3636#define DEFAULT_BOLD_FONT_STYLE "Bold"
    3737#define DEFAULT_BOLD_FONT_SIZE 12.0f
    38 #define DEFAULT_FIXED_FONT_FAMILY "Noto Mono"
     38#define DEFAULT_FIXED_FONT_FAMILY "Noto Sans Mono"
    3939#define FALLBACK_FIXED_FONT_FAMILY "Courier10 BT"
    4040#define DEFAULT_FIXED_FONT_STYLE "Regular"
    4141#define DEFAULT_FIXED_FONT_SIZE 12.0f
  • src/servers/app/font/FontManager.cpp

    diff --git a/src/servers/app/font/FontManager.cpp b/src/servers/app/font/FontManager.cpp
    index 088b23f..e6dc920 100644
    a b FontManager::_LoadRecentFontMappings()  
    342342        _AddDefaultMapping("Noto Sans", "Bold", veraFontPath.Path());
    343343
    344344        veraFontPath.SetTo(ttfontsPath.Path());
    345         veraFontPath.Append("NotoMono-Regular.ttf");
    346         _AddDefaultMapping("Noto Mono", "Regular", veraFontPath.Path());
     345        veraFontPath.Append("NotoSansMono-Regular.ttf");
     346        _AddDefaultMapping("Noto Sans Mono", "Regular", veraFontPath.Path());
    347347
    348348        return true;
    349349    }