[vte] fonts: Fix height check
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] fonts: Fix height check
- Date: Thu, 3 Feb 2022 19:58:48 +0000 (UTC)
commit 49a4b4b73b75805ff40ccdab93f098d3e7c8962d
Author: Christian Persch <chpe src gnome org>
Date: Thu Feb 3 20:58:11 2022 +0100
fonts: Fix height check
src/fonts-pangocairo.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/fonts-pangocairo.cc b/src/fonts-pangocairo.cc
index cd22c83d..296be6fc 100644
--- a/src/fonts-pangocairo.cc
+++ b/src/fonts-pangocairo.cc
@@ -243,7 +243,7 @@ FontInfo::FontInfo(vte::glib::RefPtr<PangoContext> context)
* https://gitlab.gnome.org/GNOME/gnome-terminal/-/issues/340 . Therefore
* we only use the metrics when its height is at least that which we measured.
*/
- if (ascent > 0 && height > m_height) {
+ if (ascent > 0 && height >= m_height) {
_vte_debug_print(VTE_DEBUG_PANGOCAIRO, "Using pango metrics\n");
m_ascent = ascent;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]