You are not logged in.
Hey, I'm trying to fix up the fonts on Github, however I'm not having much luck.
Font config:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="pattern">
<test qual="any" name="family"><string>Courier</string></test>
<edit name="family" mode="assign" binding="same"><string>Oxygen Mono</string></edit>
</match>
<match target="pattern">
<test qual="any" name="family"><string>Courier New</string></test>
<edit name="family" mode="assign" binding="same"><string>Oxygen Mono</string></edit>
</match>
</fontconfig>
I created that using this method. From what I can tell, it isn't replacing the fonts, or I'm replacing the wrong ones. Either way, I'd appreciate some help
Last edited by Brok9n (2013-01-07 21:23:24)
Offline
Github uses the following font families to display code (in order):
font-family: Consolas,"Liberation Mono",Courier,monospace;
So I would just replace Consolas. From the looks of the 'f' character in the code comments of your screenshot, it does appear to be displaying Consolas.
Try creating the following file "50-ttf-oxygen-mono.conf":
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
<fontconfig>
<!-- Microsoft -->
<alias binding="same">
<family>Consolas</family>
<accept>
<family>Oxygen Mono</family>
</accept>
</alias>
<alias binding="same">
<family>Oxygen Mono</family>
<default>
<family>Consolas</family>
</default>
</alias>
</fontconfig>
Note that the "50" prefix represents user overrides.
Place this in /etc/fonts/conf.avail/ and then create a symbolic link in /etc/fonts/conf.d/.
If you're using a laptop you may also want to link the lcdfilter-default conf as well, if you haven't done so. Consolas, and all other Microsoft fonts, should display nicely.
Offline
Got it now I just used my original config but replaced Courier with Consolas and it changed within seconds, now to find a font I like
~/.config/fontsconfig/fonts.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="pattern">
<test qual="any" name="family"><string>Consolas</string></test>
<edit name="family" mode="assign" binding="same"><string>Oxygen Mono</string></edit>
</match>
</fontconfig>
Thanks for the help
Last edited by Brok9n (2013-01-07 09:59:16)
Offline
Please mark this thread as solved editing the first post and prepending "[SOLVED]" to the title.
Steven [ web : git ]
GPG: 327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C
Do not email: honeypot@stebalien.com
Offline