terminal/src/renderer
Michael Niksa 671110c88a
Clip text to within the row we expect (#4671)
## Summary of the Pull Request
Adjusts `DrawGlyphRun` method inside DirectX renderer to restrict text
to be clipped within the boundaries of the row.

## PR Checklist
* [x] Closes #1703
* [x] I work here.
* [x] No tests.
* [x] No docs.
* [x] I am core contributor.

## Detailed Description of the Pull Request / Additional comments
For whatever reason, some of these shade glyphs near U+2591 tend to
extend way above the height of where we expect they should. This didn't
look like a problem in conhost because it clipped every draw inside the
bounds. This therefore applies the same clip logic as people don't
really expect text to pour out of the box.

It could, theoretically, get us into trouble later should someone
attempt zalgo text. But doing zalgo text is more of a silliness that
varies in behavior across rendering platforms anyway.

## Validation Steps Performed
- Ran the old conhost GDI renderer and observed
- Ran the new Terminal DX renderer and observed
- Made the code change
- Observed that the height and approximate display characteristics of
  the U+2591 shade and neighboring characters now matches with the conhost
  GDI style to stay within its lane.
2020-02-21 00:57:14 +00:00
..
base Restrict DX run height adjustment to only relevant glyph AND Correct PTY rendering on trailing half of fullwidth glyphs (#4668) 2020-02-21 00:24:12 +00:00
dx Clip text to within the row we expect (#4671) 2020-02-21 00:57:14 +00:00
gdi Fix a bunch of spelling errors across the project (#4295) 2020-02-10 20:40:01 +00:00
inc Fix a bunch of spelling errors across the project (#4295) 2020-02-10 20:40:01 +00:00
uia Fix a bunch of spelling errors across the project (#4295) 2020-02-10 20:40:01 +00:00
vt Restrict DX run height adjustment to only relevant glyph AND Correct PTY rendering on trailing half of fullwidth glyphs (#4668) 2020-02-21 00:24:12 +00:00
wddmcon [Git2Git] Merged PR 4297546: Fix 'atribute' to 'attribute' per issue identified on GitHub 2020-02-12 20:18:15 +00:00
dirs Initial release of the Windows Terminal source code 2019-05-02 15:29:04 -07:00