LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-24-2015, 05:43 AM   #1
yek
Member
 
Registered: Feb 2015
Location: Yokoahama Kanagawa, Japn.
Distribution: Manjaro Linux, PCLinuxOS, Sabayon Linux, Vine Linux, CentOS
Posts: 41

Rep: Reputation: 0
Fontconfig choice not defined font ignore even enforced matching.


Hi,

I'm perplexed Fontconfig behavior.

I seted up Manjaro Linux 0.8.13 x86_64 XFce for new machine, and installed KDE and Cinnamon.
I use Cinnamon usually.

This is my ~/.config/fontconfig/fonts.conf

Code:
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
 <match target="font">
  <edit name="lcdfilter" mode="assign">
   <const>lcddefault</const>
  </edit>
 </match>
 <match target="pattern">
  <test qual="any" name="family">
   <string>serif</string>
  </test>
  <edit binding="strong" name="family" mode="assign">
   <string>HannariMincho</string>
  </edit>
 </match>
 <match target="pattern">
  <test qual="any" name="family">
   <string>sans-serif</string>
  </test>
  <edit binding="strong" name="family" mode="assign">
   <string>Osaka</string>
  </edit>
 </match>
 <match target="pattern">
  <test qual="any" name="family">
   <string>sans</string>
  </test>
  <edit binding="strong" name="family" mode="assign">
   <string>Osaka</string>
  </edit>
 </match>
 <match target="pattern">
  <test qual="any" name="family">
   <string>monospace</string>
  </test>
  <edit binding="strong" name="family" mode="assign">
   <string>Ricty Discord</string>
  </edit>
 </match>
 <match target="pattern">
  <test qual="all" compare="not_eq" name="family">
   <string>sans-serif</string>
  </test>
  <test qual="all" compare="not_eq" name="family">
   <string>serif</string>
  </test>
  <test qual="all" compare="not_eq" name="family">
   <string>monospace</string>
  </test>
  <edit name="family" mode="append_last">
   <string>sans-serif</string>
  </edit>
 </match>
 <dir>~/.fonts</dir>
</fontconfig>
And configured
  • Cinnamon Default: Kokoro Mincho
  • Cinnamon Desktop: Hannari Mincho
  • Cinnamon Document: Migu 1C
  • Cinnamon Monospace: Ricty
  • Cinnamon Window Title: 07 LogoType Gothic
  • gtkrc-2.0: Kokoro Mincho
  • KDE Generic, Small, Toolbar, Menu, Window Title: Kokoro Mincho
  • KDE Monospace: Ricty Discord

But fc-match returns "07 LightNovel POP".
If change to enforce use sans-serif above not_eq section in fonts.conf,
Fontconfig use "07 LightNovel POP" for default.

When enforce to use sans-serif,
The default font used for an application menu.
Normally, Kokoro mincho is used for it.

07 LightNovel POP is in ~/.fonts.

The font is illegible, so I renamed it, and FontConfig Choose

$ fc-match
ume-pgc4.ttf: "梅PゴシックC4" "Regular"

"Ume P Gothic" instread of "LightNovel POP".

It is in /usr/share/fonts.
Thier fonts isn't defined in /etc/fonts nor /usr/share/fontconfig.

DejaVu Sans is chosen for a English font.

fc-match :lang=en
DejaVuSans.ttf: "DejaVu Sans" "Book"

It defined in /etc/fonts.


Ume P Gothic is applied to Cinnamon execution command window (Alt+F2), Cinnamon Menu, Firefox UI, and more.
LightNovel POP is applied (why?) as any bold font.

Skype's behavior is curious.
In contact list:
on invoked, "Kokoro Mincho" is used for a list and "LightNovel POP" for selected term.
Some time elapsed, "Yasashisa Gothic" is used for a list, and few times change selected term, "Yasashisa Gothic" for a selected term.
In chat window:
on invoked, "LightNovel POP" is used for a name and "Yasashisa Gothic" for a text. after some talk, some Mincho font is used for a text.


I have questions.
1. Why Fontconfig choose undefined font ignore configuration?
2. How to use intended font right?


Thanks in advance.
 
  


Reply

Tags
default, font, fontconfig, setting


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Font matching & FontConfig Foundry Attribute CVAlkan Linux - Software 1 04-01-2015 01:40 PM
[SOLVED] Fontconfig trouble with setting default font families bl0tt0 Slackware 2 03-23-2015 01:30 PM
Font problems after installing fontconfig usg Linux - Software 0 06-23-2006 08:34 AM
skip/ignore a device or font at startup roseplant Linux - General 2 01-19-2006 04:22 PM
fontconfig: Didn't find expected font family toffi22 Linux - Software 1 06-27-2005 01:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration