Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Suggestion] Adding a fallback font instead of 2 times JetBrains in config.def.h #74

Open
kajdo opened this issue Jan 10, 2025 · 0 comments

Comments

@kajdo
Copy link

kajdo commented Jan 10, 2025

Hi,

I just played around with your st build which is fantastic! Thank you! But stumbled upon 1 issue which bothered me to figure out the root cause.

I wasn't able to get the braile rendering working on btop / bpytop

after investigation, I realized that the JetBrains font from nerdfonts is not patched with braile characters

playing around with the configuration of st - I found that font2 are the fallback fonts. So if a fallback font is needed (for example for braile rendering) it doesn't make much sense to have the same font as in the default config imho

original:

static char *font = "JetBrainsMono Nerd Font :pixelsize=15:antialias=true:autohint=true";
static char *font2[] = { "JetBrainsMono Nerd Font :pixelsize=15:antialias=true:autohint=true" };

suggestion:

static char *font = "JetBrains Mono Nerd Font:pixelsize=15:antialias=true:autohint=true";
static char *font2[] = { "DejaVu Sans :pixelsize=15:antialias=true" };

check if a font is patched (does have braile):
echo -e "\u2800\u2801\u2802\u2803\u2804\u2805\u2806\u2807"

which local available fonts do have braile, can be found via:
fc-list :charset=2800

after setting a font which has brail characters included, one can also set
const int boxdraw_braille = 0;

which will then lead to a nicer rendering of btop ;)

have a great weekend

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant