You are not logged in.

#1 2020-05-12 07:32:36

DCx86
Member
From: Uppsala
Registered: 2018-02-20
Posts: 47

[SOLVED] Fonts in terminal look pixelated.

I reinstall Linux and now the fonts look pixelated in the terminal.

What have I tried:
1. Switching to a different terminal but both xterm and st (simple terminal) have the same result.
2. Installing Nerd fonts
3. Switching to oh-my-zsh and using powerlevel10k

To me it seems like it's not the missing fonts or but rather some type of anti-aliasing that is not working properly.
Tried to read font configuration on archlinux page but it's a bit overwhelming, not sure if I should try everything that is there or only some things.
Also I didn't have any issue like this with my previous archlinux install and not sure where I messed up, maybe during xorg configuration?

I see that the ouput of grep /fonts ~/.local/share/xorg/Xorg.0.log is:

[   215.336] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/misc".
[   215.336]    (Run 'mkfontdir' on "/usr/share/fonts/misc").
[   215.336] (WW) The directory "/usr/share/fonts/TTF" does not exist.
[   215.336] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[   215.336] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[   215.336] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/misc".
[   215.336]    (Run 'mkfontdir' on "/usr/share/fonts/misc").
[   215.336] (WW) The directory "/usr/share/fonts/TTF" does not exist.
[   215.336] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[   215.336] (WW) The directory "/usr/share/fonts/Type1" does not exist.
        /usr/share/fonts/100dpi,
        /usr/share/fonts/75dpi,
        /usr/share/fonts/100dpi,
        /usr/share/fonts/75dpi

Which is a bit weird since I manualy checked for the /usr/share/fonts folder and it does exist.

❯ ls /usr/share/fonts
100dpi  75dpi  adobe-source-code-pro  cantarell  cyrillic  encodings  gnu-free  liberation  misc  nerd-fonts-complete  noto  TTF  util

I also tried to run $ xset fp rehash with no positive result.

Do you have any idea why this happened and how to fix it? Thanks.

Last edited by DCx86 (2020-05-13 09:26:23)

Offline

#2 2020-05-12 07:38:42

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Fonts in terminal look pixelated.

Install some actual fonts. DejaVu, for example.

Also, switching to OMZ is not, in any universe, going to fix anything. Ever.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2020-05-12 07:39:40

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,381

Re: [SOLVED] Fonts in terminal look pixelated.

If it's just in the terminal and not xorg in general properly configure your terminal: https://wiki.archlinux.org/index.php/Xterm#Fonts

Offline

#4 2020-05-12 07:54:04

DCx86
Member
From: Uppsala
Registered: 2018-02-20
Posts: 47

Re: [SOLVED] Fonts in terminal look pixelated.

jasonwryan wrote:

Install some actual fonts. DejaVu, for example.

I just installed ttf-dejavu package but same results, also I think I got all fonts now when I installed the https://aur.archlinux.org/packages/nerd-fonts-complete/.

jasonwryan wrote:

Also, switching to OMZ is not, in any universe, going to fix anything. Ever

Yeah, somewhere deep down I knew it can't possibly make a difference but was hopping that by installing the nerd-fonts that powerlevel10k is requiring will solve the issue. Now I don't think fonts are the issue.

Last edited by DCx86 (2020-05-12 08:25:58)

Offline

#5 2020-05-12 08:25:16

DCx86
Member
From: Uppsala
Registered: 2018-02-20
Posts: 47

Re: [SOLVED] Fonts in terminal look pixelated.

V1del wrote:

If it's just in the terminal and not xorg in general properly configure your terminal: https://wiki.archlinux.org/index.php/Xterm#Fonts

So you think it's the default font my problem?

Offline

#6 2020-05-12 08:50:38

DCx86
Member
From: Uppsala
Registered: 2018-02-20
Posts: 47

Re: [SOLVED] Fonts in terminal look pixelated.

Okay, I made some progress. Inside st/config.h I changed antialias to be true.

static char *font = "Liberation Mono: pixelsize:12:antialias=true:autohint=true

It is a huge improvement, but some p10k borderlines are still a bit off.

Offline

#7 2020-05-12 12:46:36

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,519
Website

Re: [SOLVED] Fonts in terminal look pixelated.

DCx86 wrote:

somewhere deep down I knew [OMZ] can't possibly make a difference...

Oh, it makes a difference.  Just never a good one.  OMZ should come with a surgeon general's warning.  OMZ is known to cause all sorts of riduculously unpredictable and hard to diagnose problems and is hazardous to your computer's health.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#8 2020-05-12 13:29:31

DCx86
Member
From: Uppsala
Registered: 2018-02-20
Posts: 47

Re: [SOLVED] Fonts in terminal look pixelated.

Trilby wrote:

Oh, it makes a difference.  Just never a good one.  OMZ should come with a surgeon general's warning.  OMZ is known to cause all sorts of riduculously unpredictable and hard to diagnose problems and is hazardous to your computer's health.

Are you being sarcastic? can't really tell. What would you suggest, to use plain zsh? That will work fine for me since I'm aiming for a minimal setup and OMZ is not quite that.
Also, I found out that there are some patches for st that I can apply to fix some of the issues, like https://st.suckless.org/patches/font2/ .

Offline

#9 2020-05-12 13:34:11

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,519
Website

Re: [SOLVED] Fonts in terminal look pixelated.

No.  I'm not being sarcastic, hyperbolic to a degree, but not at all sarcastic.  OMZ will likely break something in a horrible way on your system.  It's only a question of when.

As for what I'd suggest: I'd suggest not installing it.  It's not some important tool for which you should consider an alternative.  Just don't use it.

Last edited by Trilby (2020-05-12 13:36:18)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#10 2020-05-13 07:23:49

DCx86
Member
From: Uppsala
Registered: 2018-02-20
Posts: 47

Re: [SOLVED] Fonts in terminal look pixelated.

What is your shell of choice Trilby? or which would you recommend to try out?
Thanks

Offline

#11 2020-05-13 08:33:31

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Fonts in terminal look pixelated.

Zsh is a wonderful modern shell. As long as you don't fuck it up with OMZ.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#12 2020-05-13 09:25:50

DCx86
Member
From: Uppsala
Registered: 2018-02-20
Posts: 47

Re: [SOLVED] Fonts in terminal look pixelated.

Got it, thank you! smile

Offline

#13 2020-05-13 11:47:15

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,519
Website

Re: [SOLVED] Fonts in terminal look pixelated.

OMZ != Zsh.

And I'm quite sure you would not like my shell of choice.  While I have my reasons for preferring it, I have no reason to recommend it to anyone else over a suitable shell like zsh.

Last edited by Trilby (2020-05-13 11:49:57)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#14 2020-05-13 12:57:15

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,819

Re: [SOLVED] Fonts in terminal look pixelated.

ash? There're many reasons to use busybox, but "this is the most convenient ant powerfull shell" isn't one I'd put in the list ;-)
But then there's fish, the friendly interactive shell that doesn't support most of the syntax stuff that makes life easier…

@DCx86, it's zsh or bash for the majority of users. Everything else is nichè.
If you want a way to quickly "enhance" zsh (add a lot of features w/o understanding what you're doing) that is NOT a complete chaotic catastrophe, have a look at the grml-zsh-config package.
But while it won't screw your system like OMZ, it'll still add some cruft you don't want and miss some nice features you might be interested in.
You could use it as base to carve and build your preferred config on.

On a related note, I ended up being quite happy w/ https://aur.archlinux.org/packages/zsh- … hting-git/

Offline

#15 2020-05-13 13:04:46

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,519
Website

Re: [SOLVED] Fonts in terminal look pixelated.

seth wrote:

ash? There're many reasons to use busybox, but "this is the most convenient ant powerfull shell" isn't one I'd put in the list ;-)

That is my list.  When almost every tool one would commonly use in a script or interactive shell can be built in to a single static binary so that all pipelines using sed, or awk, or countless other tools do not require loading external binaries or even launching additional subshells ... it has a measurable and often substantial impact on performance.

No external binaries:

$ type time sed awk grep bc nc top init
time is time
sed is sed
awk is awk
grep is grep
bc is bc
nc is nc
top is top
init is init

But like I said, this is my project for myself.  I'd be happy to help anyone else acheive similar ends, but I'd not recommend it to most.  Especially not to someone who was interested in OMZ as that suggests their priorities are very very different from mine.


On topic, grml can acheive some of the similar end goals as OMZ.  While I'd suggest just learing about your shell and creating your own configs, if you really want a prefabbed system, grml - at very least - is not a completely broken and destructive one.

Last edited by Trilby (2020-05-13 13:09:49)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#16 2020-05-13 15:47:25

DCx86
Member
From: Uppsala
Registered: 2018-02-20
Posts: 47

Re: [SOLVED] Fonts in terminal look pixelated.

Wow, thank you @Tribly and @seth for all the good info, it helps me a lot.

It's two years since I switch to linux. At first it was overwhelming and I tried not to fiddle to much with anything out of fear of breaking stuff, even though, every day I managed to learn something new and it's been an amazing journey!
Last week I made a big step and moved to DWM. I also decided to get a notebook and write down all steps I make, so far it helped me a lot in not geting lost in what I have done or how I've done it.
I'm looking forward to learn best practices and getting my hands dirty in configs. OMZ was def not one of them, just my past habit and desperate solution of fixing the pixelated font problem.

I totally agree and think that I should do my own zsh configurations. This manual I found on grml website https://grml.org/zsh/zsh-lovers.pdf looks really good and I also got the ZSH archwiki page to help me out. I think I'm on the right track now. smile

Offline

Board footer

Powered by FluxBB