You are not logged in.

#1 2012-08-19 21:26:37

Roken
Member
From: South Wales, UK
Registered: 2012-01-16
Posts: 1,253

[SOLVED] Infinality patchset font substitution

OK, I decided to test the infinality patchset for my fonts, rather than the ubuntu patches I was using, and by and large I could be happy, but for one very annoying problem.

My preferred desktop font is DejaVu Sans Book, but no matter how many times I try to set it, it gets changed to Verdana. I'm guessing that somewhere Verdana is set up in font substitution, but I can't for the life of me find it.

The same happens if I try to set the terminal font to DejaVu Sans Book, though setting the terminal to DejaVu Sans Mono works (which is what I prefer in a terminal anyway).

I've done my research - but if I'm honest there doesn't seem to be that much documentation around.

Last edited by Roken (2012-08-19 23:25:53)


Ryzen 5900X 12 core/24 thread - RTX 3090 FE 24 Gb, Asus Prime B450 Plus, 32Gb Corsair DDR4, Cooler Master N300 chassis, 5 HD (1 NvME PCI, 4SSD) + 1 x optical.
Linux user #545703

Offline

#2 2012-08-19 21:55:02

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,132

Re: [SOLVED] Infinality patchset font substitution

Where do you get DejaVu Sans Book?


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#3 2012-08-19 22:23:57

bohoomil
Member
Registered: 2010-09-04
Posts: 2,376
Website

Re: [SOLVED] Infinality patchset font substitution

Is it possible that you have some redundant (font) config files in your $HOME directory? How do you set your desktop fonts (DE/WM)?

You can set your aliases (sans-serif, serif, mono) in Infinality config files and they should be respected system wide. Unless, of course, you have any additional custom settings in your personal directory as they will always overwrite the defaults...


:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

#4 2012-08-19 23:00:10

Roken
Member
From: South Wales, UK
Registered: 2012-01-16
Posts: 1,253

Re: [SOLVED] Infinality patchset font substitution

@cfr  - DejaVu Sans - book style
@bohoomil - I've removed all font configuration from ~/ - no change. Setting the font via xfce4 appearance settings. (I can set it via dconf - but that doesn't solve the problem, just works around it)


Ryzen 5900X 12 core/24 thread - RTX 3090 FE 24 Gb, Asus Prime B450 Plus, 32Gb Corsair DDR4, Cooler Master N300 chassis, 5 HD (1 NvME PCI, 4SSD) + 1 x optical.
Linux user #545703

Offline

#5 2012-08-19 23:12:24

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,132

Re: [SOLVED] Infinality patchset font substitution

Oh. Maybe it shows up that way. The font says "Normal" rather than "book style".

Try looking through the substitution tables under /etc/fonts. Verdana is mentioned a fair amount. So is DejaVu Sans.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#6 2012-08-19 23:15:10

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: [SOLVED] Infinality patchset font substitution

What does this command return?

$ fc-match 'DejaVu Sans'

That will tell you what font will be used when an app requests DejaVu Sans.

I don't have infinality installed.  When looking at the sources, there's a file named '41-repl-os-linux.conf'.  That file has DejaVu Sans replacing Bitstream Vera Sans and Verdana.

Offline

#7 2012-08-19 23:25:33

Roken
Member
From: South Wales, UK
Registered: 2012-01-16
Posts: 1,253

Re: [SOLVED] Infinality patchset font substitution

Ahh - thanks guys. You got me looking in the right place. The pesky substitution was in 41-repl-os-win.conf

Now fixed smile


Ryzen 5900X 12 core/24 thread - RTX 3090 FE 24 Gb, Asus Prime B450 Plus, 32Gb Corsair DDR4, Cooler Master N300 chassis, 5 HD (1 NvME PCI, 4SSD) + 1 x optical.
Linux user #545703

Offline

#8 2012-08-21 03:40:20

infinality
Member
Registered: 2011-12-23
Posts: 6

Re: [SOLVED] Infinality patchset font substitution

Roken wrote:

Ahh - thanks guys. You got me looking in the right place. The pesky substitution was in 41-repl-os-win.conf

Now fixed smile

Pretty sure that if you change your infinality style to "Linux" it uses DejaVu Sans (or doesn't replace it).  By default, it uses "infinality" as the style, purely because I like it and that's the one I use.  smile  See /etc/fonts/infinality/infinality.conf (assuming Arch uses that).

Offline

#9 2012-08-21 06:42:56

Roken
Member
From: South Wales, UK
Registered: 2012-01-16
Posts: 1,253

Re: [SOLVED] Infinality patchset font substitution

I actually tried working through several of the styles thinking that may fix it, but it didn't (unless I just got unlucky and didn't hit the right one), but not an issue now that it's fixed smile


Ryzen 5900X 12 core/24 thread - RTX 3090 FE 24 Gb, Asus Prime B450 Plus, 32Gb Corsair DDR4, Cooler Master N300 chassis, 5 HD (1 NvME PCI, 4SSD) + 1 x optical.
Linux user #545703

Offline

Board footer

Powered by FluxBB