1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-10 15:04:32 +03:00
wezterm/wezterm-font/src
Wez Furlong 1e32ccbd2f shaping: fix an issue where we'd lose combining marks like U+20d7
For a sequence like `e U+20d7` the intent is to render the `e` with
a vector arrow over the top.

This is typically implemented by fonts as an `e` followed by the
vector glyph (or vice versa), where either one of those may have
a zero advance so that the two elements are combined.

There were two problems here:

* During shaping we'd see the zero advance and assume that the entry
  was useless and skip it
* During rendering, if we didn't think it had any cell width, we'd
  not render it

Cursoring through that particular sequence can hide the vector
mark if the cursor is set to the default block cursor due to annoyances
in how the block cursor is rendered (it changes the fg color to match
the bg, but for elements outside where we think the cursor is, this
makes those elements invisible).

refs: https://github.com/wez/wezterm/issues/1617
2022-02-05 06:19:25 -07:00
..
locator windows: query the system caption font 2021-12-25 09:54:31 -07:00
rasterizer encoding my preferred import grouping in the rustfmt config 2022-01-17 13:50:51 -07:00
shaper shaping: fix an issue where we'd lose combining marks like U+20d7 2022-02-05 06:19:25 -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: allow setting harfbuzz and freetype options per-font 2021-12-20 21:56:59 -07:00
hbwrap.rs fonts: allow shaping with additional paragraph context 2022-01-28 17:19:36 -07:00
lib.rs shaping: feed presentation width from the terminal through to glyph info 2022-02-01 09:23:57 -07:00
parser.rs Bundle Symbols Nerd Font Mono 2022-01-16 16:04:35 -07:00
units.rs refactor deps so that window can depend on wezterm-font 2021-06-26 22:58:42 -07:00