Bug 847627 - Malformed fontconfig config file
Malformed fontconfig config file
Product: Fedora
Classification: Fedora
Component: jomolhari-fonts (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Paul Flo Williams
Fedora Extras Quality Assurance
: Reopened
Depends On:
  Show dependency treegraph
Reported: 2012-08-13 03:40 EDT by Akira TAGOH
Modified: 2012-09-17 17:58 EDT (History)
4 users (show)

See Also:
Fixed In Version: jomolhari-fonts-0.003-14.fc19
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-08-16 06:37:48 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Akira TAGOH 2012-08-13 03:40:50 EDT
Description of problem:
Still no changes in the behavior in the latest version of fontconfig,
but it now warns when <test> contains multiple values or <alias> contains
multiple <family>s. this is because the behavior isn't intuitive and
doesn't work as expected necessarily. So you better consider to fix it
to make clearer what you want to do with it.

For solution, if you are expecting OR operator with that rule, add more
<match>s or <alias>es. if you are expecting AND operator with that rule,
just add more <test>s in that <match>.

Additional info:
No real error so far due to Bug#847623, but the rules in the pkg repo will causes this warnings.
Comment 1 Parag Nemade 2012-08-14 14:26:26 EDT
Fixed in jomolhari-fonts-0.003-13.fc19
Comment 2 Akira TAGOH 2012-08-14 22:23:31 EDT
Parag, looking at your fix on .conf, as I wrote in comment#0, having multiple <test>s in <match> means AND expression. so in this case, what you are doing is:

  If pat[lang] == 'bo-cn' and 
     pat[lang] == 'bo-in' and
     pat[lang] == 'bo' and
     pat[lang] == 'dz-bt' and 
     pat[lang] == 'dz' and
     pat[family] == 'serif' then

I'm wondering if that expression becomes true.
Comment 3 Parag Nemade 2012-08-15 03:16:44 EDT
Can you please point me the documentation on how to deal with multiple lang tests?
It will be OR case. Thought As I wrote multiple test cases it means its already OR case.
Comment 4 Akira TAGOH 2012-08-15 03:33:27 EDT
As I also mentioned in comment#0, you need multiple <match>s for OR but multiple <test>s.
Comment 5 Parag Nemade 2012-08-16 06:37:48 EDT
Fixed in jomolhari-fonts-0.003-14.fc19
Comment 6 Fedora Update System 2012-09-03 23:42:14 EDT
jomolhari-fonts-0.003-14.fc18 has been submitted as an update for Fedora 18.
Comment 7 Fedora Update System 2012-09-17 17:58:53 EDT
jomolhari-fonts-0.003-14.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.

Note You need to log in before you can comment on or make changes to this bug.