From 699f2717ebd614d258e0c71eb05eb32754978898 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 17 Jul 2013 23:04:52 +0200 Subject: [PATCH] meter metrics: ignore global font-scaling --- gtk2_ardour/meter_patterns.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gtk2_ardour/meter_patterns.cc b/gtk2_ardour/meter_patterns.cc index 9a2cab00b5..13b32e29e4 100644 --- a/gtk2_ardour/meter_patterns.cc +++ b/gtk2_ardour/meter_patterns.cc @@ -245,21 +245,22 @@ meter_render_metrics (Gtk::Widget& w, vector types) Pango::FontDescription font; font = Pango::FontDescription ("ArdourMono"); + double fixfontsize = 81920.0 / (double) ARDOUR::Config->get_font_scale(); font.set_weight (Pango::WEIGHT_NORMAL); - font.set_size (9.0 * PANGO_SCALE); + font.set_size (9.0 * PANGO_SCALE * fixfontsize); font_attr = new Pango::AttrFontDesc (Pango::Attribute::create_attr_font_desc (font)); audio_font_attributes.change (*font_attr); delete font_attr; font.set_weight (Pango::WEIGHT_ULTRALIGHT); font.set_stretch (Pango::STRETCH_ULTRA_CONDENSED); - font.set_size (8.0 * PANGO_SCALE); + font.set_size (8.0 * PANGO_SCALE * fixfontsize); font_attr = new Pango::AttrFontDesc (Pango::Attribute::create_attr_font_desc (font)); midi_font_attributes.change (*font_attr); delete font_attr; - font.set_size (6.0 * PANGO_SCALE); + font.set_size (6.0 * PANGO_SCALE * fixfontsize); font_attr = new Pango::AttrFontDesc (Pango::Attribute::create_attr_font_desc (font)); unit_font_attributes.change (*font_attr); delete font_attr;