Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Changing font for ST terminal emulator
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
DrLucky
n00b
n00b


Joined: 30 Oct 2022
Posts: 5

PostPosted: Mon Oct 31, 2022 6:40 pm    Post subject: Changing font for ST terminal emulator Reply with quote

I am having an unusual issue changing the font for ST

I can successfully edit the st source code at /etc/portage/savedconfig/x11-terms/st-0.8.5
and then recompile with emerge.

A quick neofetch confirms the new terminal font. However, the ONLY font that works is the default Liberation Mono

All other fonts look *exactly* the same: overlapping characters with bad kerning.


I have tried both fonts that live in ~/.local/share/fonts and fonts from /usr/share/fonts with no difference.

The only only font that works is the default Liberation Mono.


I didn't expect my first post on the Gentoo forums to be about a font, but here we are lol!
Please tell me what I'm missing here
_________________
~ while no trees were harmed in the making of this post, many electrons were severely inconvenienced ~
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Mon Oct 31, 2022 9:17 pm    Post subject: Reply with quote

Usually I don't use st, but I just tried.

All commands below work and give me st terminal windows with different fonts. media-fonts/dejavu and media-fonts/source-code-pro are installed on my machine.

Code:
st -f 'Liberation Mono:pixelsize=16:antialias=true:autohint=true'

Code:
st -f 'Source Code Pro:pixelsize=16:antialias=true:autohint=true'

Code:
st -f 'DejaVu Sans Mono:pixelsize=16:antialias=true:autohint=true'

It could be that USE flags are missing on your machine.

Please post the output of
Code:
emerge --info


Last edited by mike155 on Mon Oct 31, 2022 9:59 pm; edited 1 time in total
Back to top
View user's profile Send private message
DrLucky
n00b
n00b


Joined: 30 Oct 2022
Posts: 5

PostPosted: Mon Oct 31, 2022 9:43 pm    Post subject: Reply with quote

You know that thing where it starts working whenever you go to show somebody how its broken??

I hadn't tried launching the terminal with a font flag as in your example/ But that worked.
So I went and edited the source and recompiled and it works fine now!

I have no clue why, DejaVu Sans Mono was one of the fonts I had used earlier with no luck.

All I can guess is I had a typo somewhere else in the line, but that wouln't explain why going back to Liberation Mono would work.
_________________
~ while no trees were harmed in the making of this post, many electrons were severely inconvenienced ~
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum