You are not logged in.

#1 2017-06-14 16:24:13

exnihilodub
Member
Registered: 2017-02-26
Posts: 37

Changing default fonts used by applications[SOLVED]

Hi. I've a situation where two of my arch installed computers render application fonts differently. For example, the vs-code looks like this:
https://cdn.pbrd.co/images/iuTrqQrGJ.png
https://cdn.pbrd.co/images/iuWm3XpFL.png

(It's the top one I'd like to retain in both systems.)

The size difference is due to the screen resolutions being different. My problem is the typeface itself. They appear different in other applications too, such as Google Chrome and Thunar.

I've read the wiki to find a solution but failed.  the contents of /etc/fonts/conf.d/ appear to be identical. Both of the systems don't have a local.conf file set. ~/.config/fontconfig/fonts.conf is only present in one of the computers, and only contains DPI & kerning settings. Xresources only contain the font selection for rofi.

I appreciate your help and time you spend looking into this issue. I'd be glad if you could come up with a method on changing the default application fonts, or direct me towards a place where I can learn more about it.

As far as I'm aware, I don't use a DE since $XDG_CURRENT_DESKTOP returns nothing. I use the window manager bspwm.


EDIT: I also have another problem where one of the computers render fonts weirdly(jagged/blurry/hard to read), but I think that's due to the font used itself. I'm sure the screen of that system is able to render better when booted into windows, and I'm sure I've set the correct DPI setting according to my monitor's size.

Mod note: Edited large images to URLs feel free to replace them with thumbnails -- V1del

Last edited by exnihilodub (2017-06-14 21:10:21)

Offline

#2 2017-06-14 16:51:26

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Changing default fonts used by applications[SOLVED]

Visual Studio Code is a GTK2 application...

https://wiki.archlinux.org/index.php/GT … figuration


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2017-06-14 17:10:59

exnihilodub
Member
Registered: 2017-02-26
Posts: 37

Re: Changing default fonts used by applications[SOLVED]

slithery wrote:

Visual Studio Code is a GTK2 application...

https://wiki.archlinux.org/index.php/GT … figuration

Thanks slithery. I've checked the listed directories under Configuration and found those files are non-existant. Even though I think I can create those files and add options to override defaults, I'd like to know why these settings are different in these two computers(in other words, where's the default setting?).

Also, I've checked /usr/share/gtk-2.0/gtkrc and /usr/share/gtk-3.0/settings.ini .  They're identical in both systems:

$ cat /usr/share/gtk-2.0/gtkrc 
gtk-icon-theme-name = "Adwaita"
gtk-theme-name = "Adwaita"
gtk-font-name = "Cantarell 11"
$ cat /usr/share/gtk-3.0/settings.ini 
[Settings]
gtk-icon-theme-name = Adwaita
gtk-theme-name = Adwaita
gtk-font-name = Cantarell 11

Offline

#4 2017-06-14 17:58:06

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

Re: Changing default fonts used by applications[SOLVED]

Please use thumbnails or links when posting images, people on metered connections will thank you https://wiki.archlinux.org/index.php/Co … s_and_code

Offline

#5 2017-06-14 21:09:56

exnihilodub
Member
Registered: 2017-02-26
Posts: 37

Re: Changing default fonts used by applications[SOLVED]

I've noticed one of the computers didn't have Cantarell ( the one looked nice). Deleted cantarell fonts from the other computer, looks like the fallback font was the one I was looking for. It still looks weird compared to the Windows installed on the same machine, but I think I'll figure the rest, or open a new thread for it if I'm stumped.

Thanks to you all for your assistance, and I'm marking this as solved.

Offline

Board footer

Powered by FluxBB