1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-28 01:06:37 +03:00
wezterm/wezterm-font/src
Wez Furlong 14323a08d1 fonts: adjust descender for scaled fallback fonts
The gist of the issue is that when setting eg: scale=1.2 to draw
a larger CJK glyph, it is drawn at the same descender level, which
makes it more likely to leave the top of the cell.

This commit adjusts the y position by the difference between the
original and the scaled descender so that is less likely to cause
problems.

refs: https://github.com/wez/wezterm/issues/1803
2022-04-03 09:39:48 -07:00
..
locator fix build/tests 2022-03-26 17:00:03 -07:00
rasterizer fonts: allow fallback-level scaling factor 2022-03-26 16:37:50 -07:00
shaper fonts: adjust descender for scaled fallback fonts 2022-04-03 09:39:48 -07:00
db.rs fonts: defer best match until we have font_dirs + locator + builtin 2022-01-01 11:34:39 -07:00
fcwrap.rs encoding my preferred import grouping in the rustfmt config 2022-01-17 13:50:51 -07:00
ftwrap.rs fonts: workaround broken symbol fonts with 0 advances 2022-03-28 18:05:13 -07:00
hbwrap.rs fonts: allow shaping with additional paragraph context 2022-01-28 17:19:36 -07:00
lib.rs fonts: FontSlant -> FontStyle 2022-03-12 09:46:14 -07:00
parser.rs fonts: show aliases in ls-fonts --list-system output 2022-03-27 20:21:09 -07:00
units.rs refactor deps so that window can depend on wezterm-font 2021-06-26 22:58:42 -07:00