Disable Retina/Appple pango text-width workaround
authorRobin Gareus <robin@gareus.org>
Sat, 11 Mar 2017 04:13:17 +0000 (05:13 +0100)
committerRobin Gareus <robin@gareus.org>
Sat, 11 Mar 2017 04:13:17 +0000 (05:13 +0100)
Fix right-alignment (tempo-markers) and oversized bounding-boxes.
_width_correction should be removed after testing on various systems.

libs/canvas/text.cc

index 5c3487f01d9ad26b51dceb4fd0c92482fa2b20b0..f17df466151db50b94e0e94308dd37a2fdc60369 100644 (file)
@@ -110,7 +110,7 @@ Text::_redraw () const
        Glib::RefPtr<Pango::Context> context = _canvas->get_pango_context();
        Glib::RefPtr<Pango::Layout> layout = Pango::Layout::create (context);
 
-#ifdef __APPLE__
+#if 0 // def __APPLE__ // Looks like this is no longer needed 2017-03-11, pango 1.36.8, pangomm 2.34.0
        if (_width_correction < 0.0) {
                // Pango returns incorrect text width on some OS X
                // So we have to make a correction