chiark / gitweb /
Add JOIN_R and JOIN_D flags, and extend effects of JOIN_*
authorBen Harris <bjh21@bjh21.me.uk>
Mon, 22 Sep 2025 19:27:46 +0000 (20:27 +0100)
committerBen Harris <bjh21@bjh21.me.uk>
Mon, 22 Sep 2025 21:24:02 +0000 (22:24 +0100)
commit4ca8a84daaab3e080cc8d7e929f724346c97ef8a
tree98ecc695df2ff6a5a3f5d7c7899d4e0bde057fde
parentd91aaf8186a902910f7407c38958a555cf9eca6b
Add JOIN_R and JOIN_D flags, and extend effects of JOIN_*

The new flags mark glyphs that join to the right and downwards.  The
effect of these, and a new effect of JOIN_U and JOIN_L, is to arrange
that getpix() treats pixels beyond the edge of the character cell as
repeating the last row of real pixels.

In practice, this means that a diagonal stroke touching the right or
bottom edge of the cell will now be drawn as though it turns into an
orthogonal stroke across the edge rather than as though it stops.  This
doesn't affect the outline of any existing glyph.

There is a more subtle consequence, which is that joining glyphs no
longer get edge hints on their joining edges.  I think that's an
improvement: such hints might move those edges so that they don't touch
the adjacent character, which would be rather unhelpful.
bedstead.c