1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-10 06:34:17 +03:00
wezterm/test-data
Wez Furlong c4d19afa75 adventures in shaping
This commit is a result of debugging a problem with a particular font
where a VS2 variation of a glyph produced incorrect shaping.

Further investigation showed that this was specific to using freetype
font functions and that switching to opentype functions produces the
correct shaping information in that case.

Further-further investigation showed that this difference in behavior
was really due to the font file being out of spec and freetype returning
unexpected data as a result.

This commit allows switching to using harfbuzz's own opentype font+face
(rather than freetype) and/or switching the freetype-based font to using
opentype font functions.  These two options don't yield equivalent
results in the wezterm integration: a couple of our shaping tests
fail due to the x-advances not being the same. Those can be drastically
different in some cases (eg: I seem to get 0 for certain bitmap strikes,
and for Roboto the value is off by a factor of about 1.5).

This is incomplete and not something I want to turn on by default at
the moment, but I don't want to lose this work, hence this commit.

refs: https://github.com/wez/wezterm/issues/2475
refs: https://github.com/harfbuzz/harfbuzz/issues/3806
2022-09-03 08:34:19 -07:00
..
blocks.py improve 1/8th block drawing 2021-06-12 10:04:08 -07:00
box.txt add some test data files 2021-06-26 22:58:42 -07:00
braille-all-chars.txt Add test-data files for braille characters 2021-07-08 09:30:27 -07:00
braille-wezterm-logo.txt Add test-data files for braille characters 2021-07-08 09:30:27 -07:00
custom-powerline-symbols.txt Improve powerline filled semicircle custom glyphs 2021-11-12 18:38:11 -08:00
double.sh gui: take a run at rendering double-width/height lines 2022-02-05 21:28:18 -07:00
emoji-presentation.sh refine emoji-presentation script 2022-02-02 06:57:08 -07:00
emoji-test.txt wezterm: improve shaping of emoji 2020-11-23 13:45:38 -08:00
extract-x11-icon.sh x11: window icon had red/blue channels swapped 2022-03-23 07:01:26 -07:00
farmer.zsh add farmer test script 2022-02-27 12:56:50 -07:00
kitty-png.py incomplete, basic implementation of kitty image protocol 2021-07-28 09:04:52 -07:00
legacy-box.txt add some test data files 2021-06-26 22:58:42 -07:00
light-lines-vs-heavy-lines.txt Add light line vs heavy line test data file 2021-07-07 13:26:23 -07:00
notcurses-gfx.txt Add graphic block output from notcurses-info 2021-08-03 21:59:00 -07:00
styles.txt fonts: improve cap-height and use_cap_height_to_scale_fallback_fonts 2021-10-02 18:23:51 -07:00
underlines.sh add overlines to underline test script 2022-07-01 11:24:20 -07:00
unicode-dump.py more box drawing glyphs 2021-06-25 09:58:51 -07:00
vs1-vs2.txt adventures in shaping 2022-09-03 08:34:19 -07:00
width.sh test-data: add text from #614 to width script 2021-05-01 19:50:31 -07:00