1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-24 22:01:47 +03:00

wezterm: add some trace diagnostics for font render metrics

refs: https://github.com/wez/wezterm/issues/263
This commit is contained in:
Wez Furlong 2020-09-27 09:48:33 -07:00
parent 1eab37b677
commit 85dddc0ef1
2 changed files with 2 additions and 1 deletions

View File

@ -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,

View File

@ -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,