mirror of
https://github.com/wez/wezterm.git
synced 2024-12-24 13:52:55 +03:00
wezterm: add some trace diagnostics for font render metrics
refs: https://github.com/wez/wezterm/issues/263
This commit is contained in:
parent
1eab37b677
commit
85dddc0ef1
@ -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,
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user