1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-25 14:22:37 +03:00
wezterm/wezterm-gui
Wez Furlong 6830d171cf fixup metrics when line_height==1.0
This was broken by b441be3ac9

For whatever reason, the breakage was only visible with the Iosveka
font on Windows.  I couldn't reproduce it on my other systems, even
though the code technically applies to any system.

The breakage was: the metrics resulted in a difference of about 0.4
pixels being used for the descender with that particular font, resulting
in weird vertical alignment problems.

The offset needs to be computed against the ceil of the cell height,
which removes the fractional offset.

refs: https://github.com/wez/wezterm/issues/661
refs: https://github.com/wez/wezterm/issues/582
2021-04-08 09:48:47 -07:00
..
src fixup metrics when line_height==1.0 2021-04-08 09:48:47 -07:00
build.rs toast: windows: setup own AppUserModelID for our notifications 2021-02-17 23:45:52 -08:00
Cargo.toml RemoteSshDomain now uses wezterm-ssh crate 2021-03-27 18:12:34 -07:00