mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-20 21:56:30 +01:00
various fixes for places that used get_font_for_style() ... converted to use UIConfiguration::get_canvasvar_*Font()
Conflicts: gtk2_ardour/mono_panner.cc
This commit is contained in:
parent
4311b70d4f
commit
7f63055578
4 changed files with 4 additions and 5 deletions
|
|
@ -613,7 +613,7 @@ meter_render_metrics (Gtk::Widget& w, MeterType type, vector<DataType> types)
|
|||
Pango::AttrFontDesc* font_attr;
|
||||
Pango::FontDescription font;
|
||||
|
||||
font = Pango::FontDescription ("ArdourMono");
|
||||
font = Pango::FontDescription (ARDOUR_UI::config()->get_canvasvar_SmallMonospaceFont());
|
||||
double fixfontsize = 81920.0 / (double) ARDOUR::Config->get_font_scale();
|
||||
|
||||
font.set_weight (Pango::WEIGHT_NORMAL);
|
||||
|
|
|
|||
|
|
@ -62,6 +62,7 @@ MonoPanner::MonoPanner (boost::shared_ptr<ARDOUR::PannerShell> p)
|
|||
, position_binder (position_control)
|
||||
, _dragging (false)
|
||||
{
|
||||
|
||||
if (_knob_image[0] == 0) {
|
||||
for (size_t i=0; i < (sizeof(_knob_image)/sizeof(_knob_image[0])); i++) {
|
||||
_knob_image[i] = load_pixbuf (_knob_image_files[i]);
|
||||
|
|
|
|||
|
|
@ -86,9 +86,7 @@ StereoPanner::StereoPanner (boost::shared_ptr<PannerShell> p)
|
|||
if (!have_font) {
|
||||
Pango::FontDescription font;
|
||||
Pango::AttrFontDesc* font_attr;
|
||||
font = Pango::FontDescription ("ArdourMono");
|
||||
font.set_weight (Pango::WEIGHT_BOLD);
|
||||
font.set_size(9 * PANGO_SCALE);
|
||||
font = Pango::FontDescription (ARDOUR_UI::config()->get_canvasvar_SmallBoldMonospaceFont());
|
||||
font_attr = new Pango::AttrFontDesc (Pango::Attribute::create_attr_font_desc (font));
|
||||
panner_font_attributes.change(*font_attr);
|
||||
delete font_attr;
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ double TimeAxisViewItem::NAME_HIGHLIGHT_THRESH;
|
|||
void
|
||||
TimeAxisViewItem::set_constant_heights ()
|
||||
{
|
||||
NAME_FONT = get_font_for_style (X_("TimeAxisViewItemName"));
|
||||
NAME_FONT = Pango::FontDescription (ARDOUR_UI::config()->get_canvasvar_SmallFont());
|
||||
|
||||
Gtk::Window win;
|
||||
Gtk::Label foo;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue