From 1f14a9d9a53f86124b657dfe3a1ce6c7786cbaf4 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 11 Jan 2020 01:15:17 +0100 Subject: Scale the port matrix with the GUI/font-scaling setting. --- gtk2_ardour/port_matrix_column_labels.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gtk2_ardour/port_matrix_column_labels.cc') diff --git a/gtk2_ardour/port_matrix_column_labels.cc b/gtk2_ardour/port_matrix_column_labels.cc index ffa6ffd930..ed81933b9e 100644 --- a/gtk2_ardour/port_matrix_column_labels.cc +++ b/gtk2_ardour/port_matrix_column_labels.cc @@ -27,6 +27,7 @@ #include "port_matrix_column_labels.h" #include "port_matrix.h" #include "port_matrix_body.h" +#include "ui_config.h" #include "pbd/i18n.h" @@ -44,6 +45,7 @@ PortMatrixColumnLabels::compute_dimensions () { cairo_surface_t* surface = cairo_image_surface_create (CAIRO_FORMAT_RGB24, 200, 200); cairo_t* cr = cairo_create (surface); + cairo_set_font_size (cr, UIConfiguration::instance().get_ui_scale() * 10); /* width of the longest bundle name */ _longest_bundle_name = 0; -- cgit v1.2.3