try to get font size for rulers right or at least better on OS X
authorPaul Davis <paul@linuxaudiosystems.com>
Tue, 15 Jul 2014 21:48:30 +0000 (17:48 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Tue, 15 Jul 2014 21:48:30 +0000 (17:48 -0400)
gtk2_ardour/editor_rulers.cc

index d1a002e60248271259b9aa574ae0fdfbe9f410f1..5dc93cde993f2f4e208fcb9aba9bbdd1783df7c6 100644 (file)
@@ -122,8 +122,14 @@ void
 Editor::initialize_rulers ()
 {
        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());
-
+#endif
        _timecode_metric = new TimecodeMetric (this);
        _bbt_metric = new BBTMetric (this);
        _minsec_metric = new MinsecMetric (this);