Skip to content

Getting custom box drawing characters to line up perfectly #7680

Answered by kovidgoyal
rbong asked this question in Q&A
Discussion options

You must be logged in to vote

IME, you cannot. Fonts rendering simply isnt designed for this, there is all sorts of fitting, hinting, etc. that goes on that means trying to line up complex shapes correctly at all sizes, hinting settings is a lost cause.

This is why kitty generates box drawing character programmatically. It was among the first terminals to do so, nowadays all modern terminals follow it.

Your best bet would be simply to get your characters included in something like NERD fonts and then hopefully terminals will eventually pick them up as additional box drawing characters. kitty for instance draws a number of characters from powerline and nerd font programmatically. You can try contributing code to box_dr…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@rbong
Comment options

@rbong
Comment options

Answer selected by rbong
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants