summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Persch <chpe@src.gnome.org>2021-02-02 20:06:56 +0100
committerChristian Persch <chpe@src.gnome.org>2021-02-02 20:06:56 +0100
commit8d4204f3afb159ac883760350c92c8f4bc4e9836 (patch)
tree6f45f221f9af285b32d4238edf02d88bbf4a076b
parent6f860706a907549a74e09e4e047643a44128dbcc (diff)
downloadvte-8d4204f3afb159ac883760350c92c8f4bc4e9836.tar.gz
Revert "font: pangocairo: Use PangoFontMetrics to measure the font"
This regresses https://gitlab.gnome.org/GNOME/vte/-/issues/138 . Reopens: https://gitlab.gnome.org/GNOME/vte/-/issues/163
-rw-r--r--src/fonts-pangocairo.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fonts-pangocairo.cc b/src/fonts-pangocairo.cc
index 52847af5..b91a1489 100644
--- a/src/fonts-pangocairo.cc
+++ b/src/fonts-pangocairo.cc
@@ -225,7 +225,8 @@ FontInfo::FontInfo(PangoContext *context)
// FIXME!!!
m_string = g_string_sized_new(VTE_UTF8_BPC+1);
-#if PANGO_VERSION_CHECK(1, 44, 0)
+ /* See https://gitlab.gnome.org/GNOME/vte/-/issues/163 */
+#if 0 // PANGO_VERSION_CHECK(1, 44, 0)
auto need_measure = true;
if (auto metrics = vte::take_freeable
(pango_context_get_metrics(context,