You are not logged in.

#1 2019-08-05 02:14:54

CrowGravel
Member
Registered: 2019-07-11
Posts: 3

Font Configuration Problem [SOLVED]

Hello,

I'm trying to change my default monospace font. I placed the following text into /etc/fonts/local.conf:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
        <match target="pattern">
                <test qual="any" name="family">
                        <string>monospace</string>
                </test>
        </match>
        <edit name="family" mode="assign" binding="same">
                <string>mononoki</string>
        </edit>
</fontconfig>

Then, I rebooted my computer, and nothing changed.

May I get some assistance?

Last edited by CrowGravel (2019-08-07 03:32:10)

Offline

#2 2019-08-05 07:56:07

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

Re: Font Configuration Problem [SOLVED]

Welcome to the forum.

a) please wrap file contents and shell output in "code" tags
b) the edit belongs into the match section
c) rather use

<?xml version="1.0"?><!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
    <alias>
        <family>monospace</family>
        <prefer><family>mononoki</family></prefer>
    </alias>
</fontconfig>

c) rather add a high (99-*) file in /etc/fonts/conf.d/ or ~/.config/fontconfig/conf.d/ (depending on whether this is meant for the system or your user only)

Offline

#3 2019-08-07 03:28:57

CrowGravel
Member
Registered: 2019-07-11
Posts: 3

Re: Font Configuration Problem [SOLVED]

Fixed it. Thank you. Used suggestion b).

Offline

#4 2019-08-07 03:30:48

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

Re: Font Configuration Problem [SOLVED]

Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2019-08-07 03:33:20

CrowGravel
Member
Registered: 2019-07-11
Posts: 3

Re: Font Configuration Problem [SOLVED]

Thanks. Will do.

Offline

Board footer

Powered by FluxBB