1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-27 02:25:28 +03:00

ls-fonts: show pixel_sizes for font-dirs and built-ins

This commit is contained in:
Wez Furlong 2022-04-05 20:55:15 -07:00
parent 11a19a589a
commit 16e5a3604d

View File

@ -829,11 +829,17 @@ pub fn run_ls_fonts(config: config::ConfigHandle, cmd: &LsFontsCommand) -> anyho
font_dirs.len()
);
for font in font_dirs {
let pixel_sizes = if font.pixel_sizes.is_empty() {
"".to_string()
} else {
format!(" pixel_sizes={:?}", font.pixel_sizes)
};
println!(
"{} -- {}{}",
"{} -- {}{}{}",
font.lua_name(),
font.aka(),
font.handle.diagnostic_string()
font.handle.diagnostic_string(),
pixel_sizes
);
}