chiark / gitweb /
Separate flags for copying left column and top row
authorBen Harris <bjh21@bjh21.me.uk>
Sat, 26 Oct 2024 21:42:27 +0000 (22:42 +0100)
committerBen Harris <bjh21@bjh21.me.uk>
Thu, 21 Nov 2024 20:55:51 +0000 (20:55 +0000)
commit860f76c16fbfd69a1fc31f785a8f2b8e18c42111
treeff9e74440b673d563b71905d16188d801e4a0acf
parent8974fd292ceb8ec5dd951969c11fb787abc53802
Separate flags for copying left column and top row

Having a way to specify that the half-brackets extend upwards but not
leftwards avoids all the rendering problems they were previously
suffering from.  And I've spotted the VT100 scan-line characters,
which should be extended to the left but not upwards.  Since the
middle scan-line is unified with a line-drawing character, they really
need to extend leftwards for symmetry, but extending scan-line 1
upwards would be a disaster.

So now there are two flags, JOIN_U and JOIN_L, to specify joining in
each direction.  I've renamed the both-directions flag as JOIN,
because it's not just specific to line-drawing any more.  I might
eventually want a JOIN_D to suppress hinting of the bottom edge of the
character, but I need to do some testing first.
bedstead.c