<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/box-drawing.c, branch 1.8.2</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=1.8.2</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=1.8.2'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2021-07-14T17:46:21Z</updated>
<entry>
<title>box-drawing: big-endian support when setting bits manually</title>
<updated>2021-07-14T17:46:21Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-07-13T19:13:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=34f42b3dd638195bc35acdaa87762d0915757eee'/>
<id>urn:sha1:34f42b3dd638195bc35acdaa87762d0915757eee</id>
<content type='text'>
</content>
</entry>
<entry>
<title>box-drawing: pre-calculate the LIGHT and HEAVY thicknesses</title>
<updated>2021-05-17T15:58:30Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-05-07T16:01:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=8473deeed35e811152a145e26ed15372009edeeb'/>
<id>urn:sha1:8473deeed35e811152a145e26ed15372009edeeb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>box-drawing: always pass ‘buf’ as the first parameter</title>
<updated>2021-05-17T15:58:30Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-05-07T15:39:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=3dbb9063258ab904552b9ec3369725f585e99fa2'/>
<id>urn:sha1:3dbb9063258ab904552b9ec3369725f585e99fa2</id>
<content type='text'>
This way, the compiler doesn’t have to waste instructions on
re-ordering the parameters
</content>
</entry>
<entry>
<title>box-drawing: don’t inline _thickness()</title>
<updated>2021-05-17T15:58:30Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-05-07T12:34:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=25ce458281facca6a8945a556ba2f9a81a1a6992'/>
<id>urn:sha1:25ce458281facca6a8945a556ba2f9a81a1a6992</id>
<content type='text'>
It results in quite a lot of floating point instructions being emitted
in almost every box drawing function we have...
</content>
</entry>
<entry>
<title>box-drawing: use fill_boxes() instead of fill_rectangles()</title>
<updated>2021-05-17T15:58:30Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-05-07T12:09:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=b48414e72c5f690ab5326b42bf11b4f487109613'/>
<id>urn:sha1:b48414e72c5f690ab5326b42bf11b4f487109613</id>
<content type='text'>
</content>
</entry>
<entry>
<title>box-drawing: increase brightness of solid shades</title>
<updated>2021-05-17T15:58:30Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-05-07T09:42:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=b771a28d17397892eebdacdfb07fba6e331a0207'/>
<id>urn:sha1:b771a28d17397892eebdacdfb07fba6e331a0207</id>
<content type='text'>
</content>
</entry>
<entry>
<title>config: add tweak.box-drawing-solid-shades=yes|no</title>
<updated>2021-05-17T15:58:30Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-05-05T20:24:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=e7109d6b7739503c1d69749bda63460fb65580f0'/>
<id>urn:sha1:e7109d6b7739503c1d69749bda63460fb65580f0</id>
<content type='text'>
When enabled, shades are rendered as solid blocks, using a darker
variant of the current foreground color.

When disabled, shades are instead rendered in a checker box pattern,
using the foreground color unmodified.

Default is enabled.
</content>
</entry>
<entry>
<title>box-drawing: use an a8 buffer when primary font is antialiased</title>
<updated>2021-05-17T15:58:30Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-05-05T20:08:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=c0bd152218ab4ec4e9f8e27427d040a400824a49'/>
<id>urn:sha1:c0bd152218ab4ec4e9f8e27427d040a400824a49</id>
<content type='text'>
This causes relevant box drawing characters (diagonals, arcs etc) to
be antialiased as well.
</content>
</entry>
<entry>
<title>box-drawing: change_buffer_format: abort on pixman failure</title>
<updated>2021-05-17T15:58:30Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-05-05T20:08:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=9264d6695c1e8b4e4bd3d338026d83836ca3d014'/>
<id>urn:sha1:9264d6695c1e8b4e4bd3d338026d83836ca3d014</id>
<content type='text'>
</content>
</entry>
<entry>
<title>box-drawing: apply antialiasing to LIGHT ARCs</title>
<updated>2021-05-17T15:58:30Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-05-05T18:44:46Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=99a3b034c33bd88822fb802ee12324eb262ce172'/>
<id>urn:sha1:99a3b034c33bd88822fb802ee12324eb262ce172</id>
<content type='text'>
When drawing on an a8 buffer, apply antialiasing to LIGHT ARCs. This
is done by supersampling; draw to a 4 times bigger buffer, then
downsample, where each downsampled pixel is the average of the
corresponding 4x4 pixel from the supersampled buffer.

We also need to take supersampling into account while adjusting the row
and col when pixel aligning the arcs with the regular
horizontal/vertical lines.

The shape of the ARCs can still be improved. Still, this is a much
needed improvement over the current implementation.

Closes #279
</content>
</entry>
<entry>
<title>box-drawing: draw_pixman_shade(): named struct initialization</title>
<updated>2021-05-17T15:58:29Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-05-05T14:55:16Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=3d97b8c1139fbabefc7357fec3e1632cb9a0b452'/>
<id>urn:sha1:3d97b8c1139fbabefc7357fec3e1632cb9a0b452</id>
<content type='text'>
</content>
</entry>
<entry>
<title>box-drawing: fix typo: missing ‘.’ in struct member initialization</title>
<updated>2021-05-17T15:58:29Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-05-05T14:49:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=977d37396fb3859d16ef26eca3a0842cb4c9fc99'/>
<id>urn:sha1:977d37396fb3859d16ef26eca3a0842cb4c9fc99</id>
<content type='text'>
</content>
</entry>
<entry>
<title>box-drawing: shades can now be rendered either using solid color, or checker box</title>
<updated>2021-05-17T15:58:29Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-05-05T14:45:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=6937b1add80eaf6f1c140e89040528692270b643'/>
<id>urn:sha1:6937b1add80eaf6f1c140e89040528692270b643</id>
<content type='text'>
For now, switching is done using a static variable. In the future,
this could be a user option.
</content>
</entry>
<entry>
<title>box-drawing: temporary “fix” for LIGHT ARCs with a8 buffers</title>
<updated>2021-05-17T15:58:29Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-05-05T14:34:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=d495da03e1d87f25e88a0d9edc8c39ba2b74e411'/>
<id>urn:sha1:d495da03e1d87f25e88a0d9edc8c39ba2b74e411</id>
<content type='text'>
We don’t have a method to draw the arcs using pixman yet. Work around
this by replacing the a8 buffer with an a1 buffer, and render the arcs
using our old, non-antialiased, way.
</content>
</entry>
<entry>
<title>box-drawing: swap amount of shade for LIGHT and DARK shades</title>
<updated>2021-05-17T15:58:29Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-05-05T14:33:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=5dd8a7090578d62519a2568b70989acc812c082a'/>
<id>urn:sha1:5dd8a7090578d62519a2568b70989acc812c082a</id>
<content type='text'>
The DARK shade is the one most dense, and thus the one that looks
brightest.
</content>
</entry>
<entry>
<title>box-drawing: draw shades as “antialiased” blocks</title>
<updated>2021-05-17T15:58:29Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-05-05T13:31:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=b2809280847d63cb616fc363e0fcc5bbd3c1b22b'/>
<id>urn:sha1:b2809280847d63cb616fc363e0fcc5bbd3c1b22b</id>
<content type='text'>
When rendering to an a8 surface, render shades using “transparent”
pixman rectangles.

When these glyphs are composited with a color, the resulting look is
the color, but darkened.
</content>
</entry>
<entry>
<title>box-drawing: use pixman_image_fill_boxes() for rect()</title>
<updated>2021-05-17T15:58:29Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-05-05T13:12:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=d6898dcc4233211ab20ceae9cb786ac194abe8ee'/>
<id>urn:sha1:d6898dcc4233211ab20ceae9cb786ac194abe8ee</id>
<content type='text'>
</content>
</entry>
<entry>
<title>box-drawing: implement LIGHT diagonal lines using pixman</title>
<updated>2021-05-17T15:58:29Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-05-05T13:03:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=e05a510a7c4a9584d07a729c986fc21872a80c4c'/>
<id>urn:sha1:e05a510a7c4a9584d07a729c986fc21872a80c4c</id>
<content type='text'>
Use trapezoids to rasterize the diagonal lines.
</content>
</entry>
<entry>
<title>box-drawing: rect(): implement using pixman</title>
<updated>2021-05-17T15:58:29Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-05-05T13:03:04Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=19fa1b30b8f4d8563fffb8403700b8f7931db8d9'/>
<id>urn:sha1:19fa1b30b8f4d8563fffb8403700b8f7931db8d9</id>
<content type='text'>
Use pixman_image_fill_rectangles() to render rectangles. Duh!
</content>
</entry>
<entry>
<title>box-drawing: {h,v}line: implement using pixman</title>
<updated>2021-05-17T15:58:29Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-05-05T13:01:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=155537c2de346713c152199fad5b216b282ea7aa'/>
<id>urn:sha1:155537c2de346713c152199fad5b216b282ea7aa</id>
<content type='text'>
Use pixman_image_fill_rectangles() to render horizontal and vertical
lines.

Despite the name, this *is* the appropriate function to use, since our
lines *do* have a thickness, and thus *are* rectangles.
</content>
</entry>
</feed>
