LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Fontconfig: Aliasing serif/sans-serif takes no effect (https://www.linuxquestions.org/questions/slackware-14/fontconfig-aliasing-serif-sans-serif-takes-no-effect-4175631241/)

narke 06-05-2018 12:43 AM

Fontconfig: Aliasing serif/sans-serif takes no effect
 
Hi,

On my system, the 'fc-match serif' will reports:

wqy-zenhei.ttc: "文泉驿正黑" "中等"

Then I want to change the default serif font, so I write a file: ~/.config/fontconfig/fonts.conf as below:

<?xml version="1.0"?><!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<dir>~/.fonts</dir>
<alias>
<family>serif</family>
<prefer><family>Times New Roman</family></prefer>
</alias>
<alias>
<family>sans-serif</family>
<prefer><family>Arial</family></prefer>
</alias>
<alias>
<family>monospace</family>
<prefer><family>Courier New</family></prefer>
</alias>
</fontconfig>

I learned this from web. But still, even after reboot the system, I still get the same 'fc-match serif' outputs as before.

Why my aliasing operation not work?

Thanks.
-woody

solarfields 06-05-2018 04:36 AM

are you using 14.2 or -current? For -current i fixed all my fonts issues by specifying the DejaVu versions of the fonts i use. For example I define the default monospace font in Xfce's preferences to be DejaVu Sans Mono.

narke 06-06-2018 12:11 AM

Quote:

Originally Posted by solarfields (Post 5863849)
are you using 14.2 or -current? For -current i fixed all my fonts issues by specifying the DejaVu versions of the fonts i use. For example I define the default monospace font in Xfce's preferences to be DejaVu Sans Mono.

Thanks. I am using Slackware 14.2. But my question is why the family aliasing did not work.

dugan 06-09-2018 02:26 PM

Remove /etc/fonts/conf.d/44-wqy-zenhei.conf. It's what's overriding your overrides.

narke 06-11-2018 01:07 AM

Quote:

Originally Posted by dugan (Post 5865582)
Remove /etc/fonts/conf.d/44-wqy-zenhei.conf. It's what's overriding your overrides.

Yes, it works! Thanks you very much!


All times are GMT -5. The time now is 03:39 PM.