mirror of
https://github.com/wez/wezterm.git
synced 2024-12-24 13:52:55 +03:00
fonts: remove descender adjustment
It seems like we don't need this any more; things look better without it. refs: #1203 refs: #1499
This commit is contained in:
parent
0f3dcc2c2b
commit
ad96d84745
@ -497,14 +497,17 @@ impl<T: Texture2d> GlyphCache<T> {
|
||||
}
|
||||
};
|
||||
|
||||
let descender_adjust = {
|
||||
let descender_adjust = PixelLength::new(0.0);
|
||||
/* It seems like we don't really need this bit any more.
|
||||
* See #1203 and #1499
|
||||
if info.font_idx == 0 {
|
||||
PixelLength::new(0.0)
|
||||
} else {
|
||||
let descender = idx_metrics.descender * scale;
|
||||
base_metrics.descender - descender
|
||||
base_metrics.descender - descender;
|
||||
PixelLength::new(0.0)
|
||||
}
|
||||
};
|
||||
*/
|
||||
|
||||
let (cell_width, cell_height) = (base_metrics.cell_width, base_metrics.cell_height);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user