1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-24 07:46:59 +03:00
wezterm/wezterm-gui
Wez Furlong 401719fb01 fonts: improve cap-height and use_cap_height_to_scale_fallback_fonts
We now compute the cap-height from the rasterized glyph data.

Moved the scaling action of use_cap_height_to_scale_fallback_fonts from
glyphcache into the font resolver: when enabled, and we have data
about the baseline font and the font being resolved, then the resolving
font will be scaled such that the cap-height of both fonts has the same
pixel size.

The effect of this is that `I` glyphs from both fonts should appear to
have the same height.

Added a row of `I`'s in differing styles at the bottom of styles.txt
to make this easier to visualize.

refs: #1189
2021-10-02 18:23:51 -07:00
..
src fonts: improve cap-height and use_cap_height_to_scale_fallback_fonts 2021-10-02 18:23:51 -07:00
build.rs deps: windows 0.9 -> 0.11 2021-06-16 08:29:09 -07:00
Cargo.toml deps: colorgrad -> 0.5 2021-09-05 23:27:01 -07:00