mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-11-16 13:08:25 +00:00
Port the overhang allowance from the FreeType renderer: a glyph wider than its single cell by at most 2/9 of the cell width, with a minimum of 2px, is cropped rather than rescaled. Previously any glyph whose right edge was more than 1px past the cell was rescaled, shrinking glyphs such as the d with caron of Cascadia Code and the texture healing alternates of Monaspace. Widths are measured per glyph, as with FreeType, so that combining marks do not cause their base glyph to be shrunk. The left overhang of a glyph is now taken into account, and a glyph that is rescaled is moved so that its ink starts at the left edge of the cell, so that marks that hang to the left of it, as in polytonic Greek capitals, are no longer cut off. Glyphs that extend past the right edge of the cell are moved left as far as their left bearing allows, as with FreeType. Also fix the tests for this to run on macOS: face_from_path() ignored the font size on macOS and the tests treated pixels with only color bits set as ink. Fix concat_cells() for 32 bit sprites, broken since the SIMD compositing change, which treated the 0xRRGGBBAA sprite pixels as RGBA bytes, producing an opaque white image. |
||
|---|---|---|
| .. | ||
| _static | ||
| _templates | ||
| kittens | ||
| screenshots | ||
| actions.rst | ||
| basic.rst | ||
| binary.rst | ||
| build.rst | ||
| changelog.rst | ||
| clipboard.rst | ||
| color-stack.rst | ||
| conf.py | ||
| conf.rst | ||
| custom-shaders.rst | ||
| deccara.rst | ||
| desktop-notifications.rst | ||
| dnd-protocol.rst | ||
| extract-rst-targets.py | ||
| faq.rst | ||
| file-transfer-protocol.rst | ||
| glossary.rst | ||
| graphics-protocol.rst | ||
| index.rst | ||
| installer.sh | ||
| integrations.rst | ||
| intro_vid.rst | ||
| invocation.rst | ||
| keyboard-protocol.rst | ||
| kittens_intro.rst | ||
| launch.rst | ||
| layouts.rst | ||
| Makefile | ||
| mapping.rst | ||
| marks.rst | ||
| misc-protocol.rst | ||
| multiple-cursors-protocol.rst | ||
| notifications.py | ||
| open_actions.rst | ||
| overview.rst | ||
| performance.rst | ||
| pipe.rst | ||
| pointer-shapes.rst | ||
| press-mentions.rst | ||
| protocol-extensions.rst | ||
| quake-screenshots.rst | ||
| quickstart.rst | ||
| rc_protocol.rst | ||
| remote-control.rst | ||
| requirements.txt | ||
| sessions.rst | ||
| shell-integration.rst | ||
| support.html | ||
| support.rst | ||
| text-sizing-protocol.rst | ||
| underlines.rst | ||
| unscroll.rst | ||
| wide-gamut-colors.rst | ||