diff options
-rw-r--r-- | gtk2_ardour/clearlooks.rc.in | 20 | ||||
-rw-r--r-- | gtk2_ardour/ui_config_vars.h | 1 | ||||
-rw-r--r-- | gtk2_ardour/utils.cc | 3 | ||||
-rw-r--r-- | gtk2_ardour/wscript | 9 |
4 files changed, 22 insertions, 11 deletions
diff --git a/gtk2_ardour/clearlooks.rc.in b/gtk2_ardour/clearlooks.rc.in index cc8c7cd9ab..e2d25acb65 100644 --- a/gtk2_ardour/clearlooks.rc.in +++ b/gtk2_ardour/clearlooks.rc.in @@ -282,12 +282,12 @@ style "status_bar_box" style "very_small_text" { - font_name = "@FONT_SMALLER@" + font_name = "@FONTFAMILY@ @FONT_SMALLER@" } style "small_text" { - font_name = "@FONT_SMALL@" + font_name = "@FONTFAMILY@ @FONT_SMALL@" } style "small_clock" @@ -297,22 +297,22 @@ style "small_clock" style "small_italic_text" { - font_name = "italic @FONT_SMALL@" + font_name = "@FONTFAMILY@ italic @FONT_SMALL@" } style "small_bold_text" { - font_name = "bold @FONT_SMALL@" + font_name = "@FONTFAMILY@ bold @FONT_SMALL@" } style "medium_bold_text" { - font_name = "bold @FONT_NORMAL@" + font_name = "@FONTFAMILY@ bold @FONT_NORMAL@" } style "medium_text" { - font_name = "@FONT_NORMAL@" + font_name = "@FONTFAMILY@ @FONT_NORMAL@" } style "medium_monospace_text" @@ -329,12 +329,12 @@ style "red_medium_text" = "medium_text" style "large_bold_text" { - font_name = "bold @FONT_LARGE@" + font_name = "@FONTFAMILY@ bold @FONT_LARGE@" } style "big_text" { - font_name = "@FONT_BIG@" + font_name = "@FONTFAMILY@ @FONT_BIG@" } style "bigger_clock" @@ -344,7 +344,7 @@ style "bigger_clock" style "larger_text" { - font_name = "@FONT_LARGE@" + font_name = "@FONTFAMILY@ @FONT_LARGE@" } style "massive_clock" @@ -354,7 +354,7 @@ style "massive_clock" style "big_bold_text" { - font_name = "bold @FONT_LARGER@" + font_name = "@FONTFAMILY@ bold @FONT_LARGER@" } style "plugin_name_text" = "big_bold_text" diff --git a/gtk2_ardour/ui_config_vars.h b/gtk2_ardour/ui_config_vars.h index 9b70deb026..5f145de705 100644 --- a/gtk2_ardour/ui_config_vars.h +++ b/gtk2_ardour/ui_config_vars.h @@ -21,6 +21,7 @@ UI_CONFIG_VARIABLE (std::string, icon_set, "icon-set", "default") UI_CONFIG_VARIABLE (std::string, ui_rc_file, "ui-rc-file", "clearlooks.rc") +UI_CONFIG_VARIABLE (std::string, ui_font_family, "ui-font-family", "Sans") UI_CONFIG_VARIABLE (std::string, color_file, "color-file", "dark") UI_CONFIG_VARIABLE (bool, flat_buttons, "flat-buttons", false) UI_CONFIG_VARIABLE (bool, boxy_buttons, "boxy-buttons", false) diff --git a/gtk2_ardour/utils.cc b/gtk2_ardour/utils.cc index 7489b2e08b..25196a62dd 100644 --- a/gtk2_ardour/utils.cc +++ b/gtk2_ardour/utils.cc @@ -277,7 +277,8 @@ ARDOUR_UI_UTILS::sanitized_font (std::string const& name) Pango::FontDescription fd (name); if (fd.get_family().empty()) { - fd.set_family ("Sans"); + /* default: "Sans" or "ArdourSans" */ + fd.set_family (UIConfiguration::instance ().get_ui_font_family ()); } return fd; diff --git a/gtk2_ardour/wscript b/gtk2_ardour/wscript index c63524d914..a2d75c3c68 100644 --- a/gtk2_ardour/wscript +++ b/gtk2_ardour/wscript @@ -822,6 +822,7 @@ def build(bld): key = font_sym font_subst_dict[key] = text + font_subst_dict['FONTFAMILY'] = '' # RC file obj = bld(features = 'subst') @@ -830,6 +831,14 @@ def build(bld): obj.install_path = bld.env['CONFDIR'] set_subst_dict(obj, font_subst_dict) + font_subst_dict['FONTFAMILY'] = 'ArdourSans' + + obj = bld(features = 'subst') + obj.source = [ 'clearlooks.rc.in' ] + obj.target = 'clearlooks.ardoursans.rc' + obj.install_path = bld.env['CONFDIR'] + set_subst_dict(obj, font_subst_dict) + obj = bld(features = 'subst') obj.source = [ 'default_ui_config.in' ] obj.target = 'default_ui_config' |