Commit graph

43 commits

Author SHA1 Message Date
Kovid Goyal
0f0ea8e43b
... 2026-03-30 09:25:19 +05:30
Kovid Goyal
1c95b321c4
... 2026-03-30 09:22:08 +05:30
Kovid Goyal
b3bdfbc487
Add link to where in the Unicode spec VS15 behavior comes from 2026-03-30 09:21:31 +05:30
Kovid Goyal
cf8ae0781e
... 2026-03-29 21:09:59 +05:30
Kovid Goyal
dd31561481
Docs: Sample function to output a line of text robustly in the face of VS15 narrowing the last grapheme 2026-03-29 20:57:51 +05:30
Kovid Goyal
c03e280128
Text sizing protocol: Fix alignment/cropping issues when rendering text with a fractional scale
Also add some clarifications to the docs for exactly how alignment
operates with fractional scaling.

Fixes #9471
Fixes #9537
2026-02-24 08:45:21 +05:30
shfc
51a08d23cd
fix: typos in documentation 2025-12-14 22:42:24 +10:30
Wukuyon
91bca3357b Text sizing protocol docs: Make code point notation more consistent 2025-09-14 15:22:05 -06:00
Wukuyon
2514178abe Adjust text sizing protocol docs: UTF-8 decoding and precise terminology
This commit makes the following changes to the text sizing protocol's docs, to describe Kitty's current Unicode behavior more precisely in the text sizing protocol docs (#8533).

These changes describe **behavior that Kitty *already* has**. It does not require any changes to any actual Kitty source code. (I don't know if Foot currently matches this behavior.)

1. The algorithm for splitting text into cells now uses the phrases
"code point" or "Unicode scalar value" instead of "Unicode character",
which is an ambiguous phrase.

2. The algorithm now requires that the terminal uses UTF-8 to decode the bytes it receives into Unicode scalar values.

3. The algorithm now requires that the terminal replace each maximal subpart of any ill-formed subsequence with U+FFFD REPLACEMENT CHARACTER (�).
2025-09-13 22:49:01 -06:00
Kovid Goyal
988070612b
... 2025-07-23 10:46:45 +05:30
Kovid Goyal
07354f4d6d
Update wording of warning regarding changes to text sizing algorithm 2025-07-23 10:45:43 +05:30
Kovid Goyal
5b05b1235e
Fix #8648 2025-05-19 06:22:45 +05:30
Kovid Goyal
e100d3f5dd
Add a warning about algorithm changes 2025-04-13 10:37:20 +05:30
Kovid Goyal
423bdfc5f3
... 2025-04-13 10:34:45 +05:30
Kovid Goyal
d30354e9c8
... 2025-04-13 10:31:43 +05:30
Kovid Goyal
521031449f
Dont use a ref as it causes numbering restart 2025-04-13 10:30:21 +05:30
Kovid Goyal
dbc88d8a3a
Document test description format 2025-04-11 12:03:06 +05:30
Kovid Goyal
85c177bcb1
Add note about width test kitten 2025-04-11 11:24:19 +05:30
Kovid Goyal
5798d29609
... 2025-04-11 09:34:21 +05:30
Kovid Goyal
3e0c5c5a1a
... 2025-04-11 09:34:21 +05:30
Kovid Goyal
3f919cbc56
Specify the algorithm for splitting text into cells 2025-04-11 09:34:21 +05:30
Kovid Goyal
3f60ed4d92
... 2025-03-09 22:51:40 +05:30
Kovid Goyal
15f711d6b5
Start work on horizontal align for multicells 2025-02-19 07:50:40 +05:30
Kovid Goyal
3c2d6f623f
Add max text length per escape code to the text-sizing-protocol 2025-02-12 09:51:52 +05:30
Kovid Goyal
b3a0a9907f
... 2025-02-06 09:08:51 +05:30
Kovid Goyal
087c74919e
Add some clarifications to text-sizing spec
Based on feedback from users
2025-02-06 08:59:27 +05:30
Kovid Goyal
9ca420a6bf
Clarify that text sizing is relative to base font size 2025-02-05 07:59:59 +05:30
Kovid Goyal
11315b35ba
... 2025-02-03 10:56:52 +05:30
Kovid Goyal
82d7cc1802
spelling 2025-02-03 10:56:52 +05:30
Kovid Goyal
57d1ec8648
... 2025-02-03 10:56:51 +05:30
Kovid Goyal
c2503988c1
Add a note about querying for scale and width separately 2025-02-03 10:56:51 +05:30
Kovid Goyal
78c83e8218
Add a sentence specifying the fractional scale does not adjust number of cells 2025-02-03 10:56:51 +05:30
Kovid Goyal
b53c4941b5
add link to issue discussing text-sizing protocol 2025-02-03 10:56:51 +05:30
Kovid Goyal
dfe59a75b8
... 2025-02-03 10:56:51 +05:30
Kovid Goyal
a30a639cb9
Add docs for multicell + control codes 2025-02-03 10:56:51 +05:30
Kovid Goyal
8fd7d3100f
More multicell docs 2025-02-03 10:56:51 +05:30
Kovid Goyal
9418f399c3
... 2025-02-03 10:56:51 +05:30
Kovid Goyal
530e1ea1b3
Add section on detecting text sizing protocol 2025-02-03 10:56:51 +05:30
Kovid Goyal
3655db3124
... 2025-02-03 10:56:51 +05:30
Kovid Goyal
3501e76238
Document how we solve the character width problem 2025-02-03 10:56:51 +05:30
Kovid Goyal
da234244a4
More docs on text sizing 2025-02-03 10:56:51 +05:30
Kovid Goyal
f1452a80dd
More work on text sizing docs 2025-02-03 10:56:51 +05:30
Kovid Goyal
484155ca89
Start work on documenting text sizing protocol 2025-02-03 10:56:50 +05:30