View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0010256 | ardour | bugs | public | 2026-03-22 00:06 | 2026-03-23 11:37 |
| Reporter | stumps | Assigned To | |||
| Priority | normal | Severity | minor | Reproducibility | random |
| Status | new | Resolution | open | ||
| Platform | Ubuntu | OS | Linux | OS Version | (any) |
| Product Version | 9.2 | ||||
| Summary | 0010256: Inconsistent font size in GUI source-built Ardour instance | ||||
| Description | KDE's XSETTINGS daemon asynchronously pushes Gtk/FontName "Noto Sans, 10" to source-built Ardour instances, overriding font settings randomly during startup, because source builds don't set ARDOUR_BUNDLED and therefore never run fixup_bundle_environment(). | ||||
| Steps To Reproduce | Run source-built Ardour 9.2 10 times. Only 3 out of 10 times fonts are shown correctly (see attached images). | ||||
| Additional Information | Issue is fully resolved by: diff --git a/gtk2_ardour/ui_config.cc b/gtk2_ardour/ui_config.cc index fcb909273e..4846f709ff 100644 --- a/gtk2_ardour/ui_config.cc +++ b/gtk2_ardour/ui_config.cc @@ -208,6 +208,7 @@ UIConfiguration::reset_dpi () gtk_settings_set_long_property (gtk_settings_get_default(), "gtk-xft-dpi", val, "ardour"); + g_object_set (gtk_settings_get_default(), "gtk-font-name", "ArdourSans 8", NULL); DPIReset(); //Emit Signal } Suggested additional changes: diff --git a/gtk2_ardour/ui_config_vars.inc.h b/gtk2_ardour/ui_config_vars.inc.h index 0b56a13807..66c8f4211f 100644 --- a/gtk2_ardour/ui_config_vars.inc.h +++ b/gtk2_ardour/ui_config_vars.inc.h @@ -21,7 +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, ui_font_family, "ui-font-family", "ArdourSans") 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/wscript b/gtk2_ardour/wscript index e9f38fa3fe..eec8354a9f 100644 --- a/gtk2_ardour/wscript +++ b/gtk2_ardour/wscript @@ -833,7 +833,7 @@ def build(bld): key = font_sym font_subst_dict[key] = text - font_subst_dict['FONTFAMILY'] = '' + font_subst_dict['FONTFAMILY'] = 'ArdourSans' # RC file obj = bld(features = 'subst') | ||||
| Tags | No tags attached. | ||||
|
|
|
|
|
--- a/gtk2_ardour/wscript +++ b/gtk2_ardour/wscript @@ -833,7 +833,7 @@ def build(bld): key = font_sym font_subst_dict[key] = text - font_subst_dict['FONTFAMILY'] = '' + font_subst_dict['FONTFAMILY'] = 'ArdourSans' # RC file This hunk is not correct, ArdourSans is supposed to be only set for `clearlooks.ardoursans.rc` and not `clearlooks.rc`. |
|
|
Confirmed. Issue is resolved without touching anything in ./gtk2_ardour/wscript |
|
|
Does just changing -UI_CONFIG_VARIABLE (std::string, ui_font_family, "ui-font-family", "Sans") +UI_CONFIG_VARIABLE (std::string, ui_font_family, "ui-font-family", "ArdourSans") suffice ? Or is is also required to explicitly set it as gtk-font-name diff --git a/gtk2_ardour/ui_config.cc b/gtk2_ardour/ui_config.cc
index fcb909273e..2801053325 100644
--- a/gtk2_ardour/ui_config.cc
+++ b/gtk2_ardour/ui_config.cc
@@ -34,6 +34,7 @@
#include <ytkmm/settings.h>
+#include "pbd/compose.h"
#include "pbd/convert.h"
#include "pbd/error.h"
#include "pbd/failed_constructor.h"
@@ -162,6 +163,8 @@ UIConfiguration::parameter_changed (string param)
load_color_theme (true);
} else if (param == "font-scale") {
ArdourCanvas::Text::drop_height_maps ();
+ } else if (param == "ui-font-family") {
+ g_object_set (gtk_settings_get_default(), "gtk-font-name", string_compose ("%1 8", get_ui_font_family()).c_str (), NULL);
}
save_state ();
|
|
|
So after a thorough testing (including what Robin suggested in the previous post) I found out that the ONLY one and ENOUGH by itself code change that resolves the issue in Ardour 9.2 is the initially suggested one: diff --git a/gtk2_ardour/ui_config.cc b/gtk2_ardour/ui_config.cc index fcb909273e..4846f709ff 100644 --- a/gtk2_ardour/ui_config.cc +++ b/gtk2_ardour/ui_config.cc @@ -208,6 +208,7 @@ UIConfiguration::reset_dpi () gtk_settings_set_long_property (gtk_settings_get_default(), "gtk-xft-dpi", val, "ardour"); + g_object_set (gtk_settings_get_default(), "gtk-font-name", "ArdourSans 8", NULL); DPIReset(); //Emit Signal } 10 out of 10 tries are showing the fonts correctly in KDE 5.27, Plasma 5.27 within Kubuntu 24.04.04 LTS |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2026-03-22 00:06 | stumps | New Issue | |
| 2026-03-22 00:06 | stumps | File Added: fonts_not_OK.png | |
| 2026-03-22 00:06 | stumps | File Added: fonts_OK.png | |
| 2026-03-22 00:18 | x42 | Note Added: 0030148 | |
| 2026-03-22 07:57 | stumps | Note Added: 0030150 | |
| 2026-03-22 18:09 | x42 | Note Added: 0030154 | |
| 2026-03-23 11:37 | stumps | Note Added: 0030155 |