aboutsummaryrefslogtreecommitdiff
path: root/client.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2024-06-27 16:36:17 +0000
committerDaniel Eklöf <daniel@ekloef.se>2024-06-27 16:36:17 +0000
commit19bf558e6cee456eabe6b87d9d51e8f220e20cfa (patch)
tree0e044048dfb805ebd0e2df450f0b91ff14666763 /client.c
parentgrid: refactor: replace {uri,curly}_range_append() with range_append() (diff)
render: underlines: improve the appearance of the 'dotted' style
Try to make the 'dotted' style appear more even, and less like each cell is rendered separately (even though they are). Algorithm: Each dot is a square; it's sides are that of the font's line thickness. The spacing (gaps) between the dots is initially the same width as the dots themselves. This means the number of dots per cell is the cell width divided by the dots' length/width, divided by two. At this point, there may be "left-over" pixels.I.e. the widths of the dots and the gaps between them may not add up to the width of the cell. These pixels are evenly (as possible) across the gaps. There are still visual inaccuracies at small font sizes. This is impossible to fix without changing the way underlines are rendered, to render an entire line in one go. This is not something we want to do, since it'll make styled underlines, for a specific cell/character, look differently, depending on the surrounding context.
Diffstat (limited to 'client.c')
0 files changed, 0 insertions, 0 deletions