From 85dddc0ef11ba5850bd71f7de75ba1d278c9be68 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sun, 27 Sep 2020 09:48:33 -0700 Subject: [PATCH] wezterm: add some trace diagnostics for font render metrics refs: https://github.com/wez/wezterm/issues/263 --- src/frontend/gui/termwindow.rs | 1 + src/frontend/gui/utilsprites.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/frontend/gui/termwindow.rs b/src/frontend/gui/termwindow.rs index 3e8648761..dcf7ec49a 100644 --- a/src/frontend/gui/termwindow.rs +++ b/src/frontend/gui/termwindow.rs @@ -867,6 +867,7 @@ impl TermWindow { let physical_cols = size.cols as usize; let render_metrics = RenderMetrics::new(fontconfig); + log::trace!("using render_metrics {:#?}", render_metrics); let terminal_size = PtySize { rows: physical_rows as u16, diff --git a/src/frontend/gui/utilsprites.rs b/src/frontend/gui/utilsprites.rs index 22246640b..a7bf3b7a6 100644 --- a/src/frontend/gui/utilsprites.rs +++ b/src/frontend/gui/utilsprites.rs @@ -8,7 +8,7 @@ use std::rc::Rc; use termwiz::surface::CursorShape; use wezterm_term::Underline; -#[derive(Copy, Clone)] +#[derive(Copy, Clone, Debug)] pub struct RenderMetrics { pub descender: PixelLength, pub descender_row: IntPixelLength,