[Fontconfig-bugs] [Bug 59438] Fix <alias> inside <match>
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Mon Jan 21 23:56:13 PST 2013
https://bugs.freedesktop.org/show_bug.cgi?id=59438
Akira TAGOH <akira at tagoh.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |akira at tagoh.org
--- Comment #1 from Akira TAGOH <akira at tagoh.org> ---
(In reply to comment #0)
> Currently the alias doesn't respect the tests.
I think it was fixed in 2.10.0 with
http://cgit.freedesktop.org/fontconfig/commit/?id=ddefa5021f7785514f373aab6a8e6191a867278e
<alias>
<test name="lang">
<string>ja</string>
</test>
<test name="family" qual="all" compare="not_eq">
<string>IPAGothic</string>
</test>
<family>sans-serif</family>
<default><family>IPAGothic</family></default>
</alias>
$ FC_DEBUG=1028 fc-match
...
Loading config file
/home/tagoh/.config/fontconfig/conf.d/00-test-in-alias.conf
Add Subst match
pattern any lang Equal "ja"
pattern all family NotEqual "IPAGothic"
pattern any family Equal(ignore blanks) "sans-serif"
edit
Edit family AppendLast "IPAGothic";
That said, as you say fontconfig does deal with <alias> inside <match> too:
<match>
<alias>
<family>sans-serif</family>
<default><family>foo</family></default>
</alias>
</match>
$ FC_DEBUG=1028 fc-match
...
Loading config file
/home/tagoh/.config/fontconfig/conf.d/000-bz59438.conf
Add Subst match
pattern any family Equal(ignore blanks) "sans-serif"
edit
Edit family AppendLast "foo";
Add Subst match
edit
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/fontconfig-bugs/attachments/20130122/2d427643/attachment.html>
More information about the Fontconfig-bugs
mailing list