If you live in the terminal, kitty is made for you! Cross-platform, fast, feature-rich, GPU based.
pattern_as_dict() in fontconfig.c never read FC_MATRIX, so any per-font transform set by fontconfig was silently dropped. fontconfig ships a default rule (90-synthetic.conf) that applies a slant matrix to any roman-only font when italic is requested, which is why italic CJK has been rendering upright in kitty. Read the matrix, carry it on the descriptor as a 4-tuple of doubles, apply it once in face_from_descriptor() via FT_Set_Transform, also inform HarfBuzz via hb_font_set_synthetic_slant + hb_ft_font_changed so shaping reflects the slanted rendering. Extend face_equals_descriptor() to compare the matrix so the per-FontGroup fallback cache returns the right face when upright and italic share a font file. The FT transform is sticky on the face, so subsequent FT_Load_Glyph calls inherit it with no per-call overhead, and the per-Face glyph atlas cache stays correct because the matrix is set at init and never changes. Pure shears (xx=1, yy=1) preserve horizontal advance and do not disturb monospace cell width. The HB synthetic_slant call is gated on HB_VERSION_ATLEAST(4,0,0) since setup.py allows down to 1.5.0. hb_ft_font_changed runs unconditionally to invalidate any populated caches. Refs #9857, #9700. |
||
|---|---|---|
| .github | ||
| 3rdparty | ||
| bypy | ||
| docs | ||
| gen | ||
| glad | ||
| glfw | ||
| kittens | ||
| kitty | ||
| kitty_tests | ||
| logo | ||
| shell-integration | ||
| terminfo | ||
| tools | ||
| .editorconfig | ||
| .gitattributes | ||
| .gitignore | ||
| __main__.py | ||
| benchmark.py | ||
| Brewfile | ||
| build-terminfo | ||
| CHANGELOG.rst | ||
| CONTRIBUTING.md | ||
| count-lines-of-code | ||
| dev.sh | ||
| embeds.go | ||
| go.mod | ||
| go.sum | ||
| INSTALL.md | ||
| key_encoding.json | ||
| LICENSE | ||
| Makefile | ||
| publish.py | ||
| pyproject.toml | ||
| README.asciidoc | ||
| rsync-and-build.sh | ||
| SECURITY.md | ||
| session.vim | ||
| setup.py | ||
| shell.nix | ||
| staticcheck.conf | ||
| test.py | ||
| update-on-ox | ||
= kitty - the fast, feature-rich, cross-platform, GPU based terminal If you live in the terminal, *kitty* is made for **you**! See https://sw.kovidgoyal.net/kitty/[the kitty website]. image:https://github.com/kovidgoyal/kitty/workflows/CI/badge.svg["Build status", link="https://github.com/kovidgoyal/kitty/actions?query=workflow%3ACI"] https://sw.kovidgoyal.net/kitty/faq/[Frequently Asked Questions] To ask other questions about kitty usage, use either the https://github.com/kovidgoyal/kitty/discussions/[discussions on GitHub] or the https://www.reddit.com/r/KittyTerminal[Reddit community] Packaging status in various repositories: image:https://repology.org/badge/vertical-allrepos/kitty-terminal.svg?columns=3&header=kitty["Packaging status", link="https://repology.org/project/kitty-terminal/versions"]