try to get font size for rulers right or at least better on OS X

This commit is contained in:
Paul Davis 2014-07-15 17:48:30 -04:00
parent 67788b7136
commit bb69a55784

View file

@ -122,8 +122,14 @@ void
Editor::initialize_rulers () Editor::initialize_rulers ()
{ {
ruler_grabbed_widget = 0; ruler_grabbed_widget = 0;
/* Not really sure why we can't get this right in a cross-platform way,
but it seems hard.
*/
#ifdef __APPLE__
Pango::FontDescription font (ARDOUR_UI::config()->get_canvasvar_SmallerFont());
#else
Pango::FontDescription font (ARDOUR_UI::config()->get_canvasvar_SmallFont()); Pango::FontDescription font (ARDOUR_UI::config()->get_canvasvar_SmallFont());
#endif
_timecode_metric = new TimecodeMetric (this); _timecode_metric = new TimecodeMetric (this);
_bbt_metric = new BBTMetric (this); _bbt_metric = new BBTMetric (this);
_minsec_metric = new MinsecMetric (this); _minsec_metric = new MinsecMetric (this);