ctrld-font icon indicating copy to clipboard operation
ctrld-font copied to clipboard

Line drawing characters are incorrect

Open h3xx opened this issue 9 years ago • 2 comments

The line-drawing characters in this font are mixed up from the standard ASCII special character definition. I used the standard bdftopcf method (read: ran make) of generating the fonts from the current source.

In the attached screenshot below, on the top is -ctrld-fixed-medium-r-normal-*-13-*-*-*-*-*-*-*, the one in the middle is the default rxvt font, and the bottom font is -*-terminus-medium-r-normal-*-12-*-*-*-*-*-*-*. Notice the discrepancies between characters 152 and 177 (notably 166 which is upside down in ctrld).

screenshot-2015-1005-1202

h3xx avatar Oct 05 '15 17:10 h3xx

Currently ctrld font contains no line drawing glyph. But this doesn't explain this weird behavior. Could you post the full script? If it's just octal value of charactor code, then I believe 141 should be 'a'.

bjin avatar Oct 05 '15 17:10 bjin

Could you post the full script?

escgen script.

If it's just octal value of charactor code, the I believe 141 should be 'a'.

It is, but the terminal is in "special characters" mode:

printf '\e)0'   # set G1's translation table to Special Graphics

printf '\x0e'   # Switch to G1
cat << EOF
lqqqqqqqqqqqqqqqqqqqqqqqqqk
x ENJOY SOME LINE DRAWING x
mqqqqqqqqqqqqqqqqqqqqqqqqqj
EOF
printf '\x0f'   # Switch to G0

h3xx avatar Oct 05 '15 18:10 h3xx