mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 16:46:35 +01:00
meter metrics: ignore global font-scaling
This commit is contained in:
parent
d51a1ec06b
commit
1128c4eeda
1 changed files with 4 additions and 3 deletions
|
|
@ -245,21 +245,22 @@ meter_render_metrics (Gtk::Widget& w, vector<DataType> types)
|
||||||
Pango::FontDescription font;
|
Pango::FontDescription font;
|
||||||
|
|
||||||
font = Pango::FontDescription ("ArdourMono");
|
font = Pango::FontDescription ("ArdourMono");
|
||||||
|
double fixfontsize = 81920.0 / (double) ARDOUR::Config->get_font_scale();
|
||||||
|
|
||||||
font.set_weight (Pango::WEIGHT_NORMAL);
|
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));
|
font_attr = new Pango::AttrFontDesc (Pango::Attribute::create_attr_font_desc (font));
|
||||||
audio_font_attributes.change (*font_attr);
|
audio_font_attributes.change (*font_attr);
|
||||||
delete font_attr;
|
delete font_attr;
|
||||||
|
|
||||||
font.set_weight (Pango::WEIGHT_ULTRALIGHT);
|
font.set_weight (Pango::WEIGHT_ULTRALIGHT);
|
||||||
font.set_stretch (Pango::STRETCH_ULTRA_CONDENSED);
|
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));
|
font_attr = new Pango::AttrFontDesc (Pango::Attribute::create_attr_font_desc (font));
|
||||||
midi_font_attributes.change (*font_attr);
|
midi_font_attributes.change (*font_attr);
|
||||||
delete 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));
|
font_attr = new Pango::AttrFontDesc (Pango::Attribute::create_attr_font_desc (font));
|
||||||
unit_font_attributes.change (*font_attr);
|
unit_font_attributes.change (*font_attr);
|
||||||
delete font_attr;
|
delete font_attr;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue