Keith Packard wrote:
> I've been slowly converging on a release for fontconfig and Xft. I've
> recently finished incorporating feedback from various people; if others
> have comments on what should be in this release, please let me know soon.
I have a question about fonts.conf augmenting multiple matching rules.
For example,
<alias>
<family>serif</family>
<prefer>
<family>Times New Roman</family>
<family>Times</family>
</prefer>
</alias>
If I specify a font name 'serif', will it be edited as
'Times New Roman,Times,serif'
or
'Times,Times New Roman,serif'
Now if I add another one after the above,
<alias>
<family>serif</family>
<prefer>
<family>Nimbus Roman No9 L</family>
</prefer>
</alias>
If I specify a font name 'serif', will it be edited as
'Nimbus Roman No9 L,Times New Roman,Times,serif'
or
'Times New Roman,Times,Numbus Roman No9 L,serif'
What about <accept> and <default>? Is there a general rule for this?
What if I have
<include ignore_missing="yes">~/.fonts.conf</include>
at the beginning of fonts.conf and I specify
<alias>
<family>serif</family>
<prefer>
<family>AR PL SungtiL GB</family>
</prefer>
</alias>
If I specify a font name 'serif', will it be edited as
'Times New Roman,Times,Numbus Roman No9 L,AR PL SungtiL GB,serif'
or
'AR PL SungtiL GB,Times New Roman,Times,Numbus Roman No9 L,serif'
The question comes from here:
In system wide fonts.conf, you have
<alias>
<family>serif</family>
<prefer>
<family>Times New Roman</family>
<family>Nimbus Roman No9 L</family>
<family>Luxi Serif</family>
<family>Times</family>
<family>Kochi Mincho</family>
<family>AR PL SungtiL GB</family>
<family>Baekmuk Batang</family>
</prefer>
</alias>
I want to override it in my ~/.fonts.conf if I cann't modify
/etc/fonts/fonts.conf
I cannot do that easily. Probably a reasonable default could be
<alias>
<family>serif</family>
<prefer>
<family>Times New Roman</family>
<family>Nimbus Roman No9 L</family>
<family>Luxi Serif</family>
<family>Times</family>
</prefer>
<default>
<family>Kochi Mincho</family>
<family>AR PL SungtiL GB</family>
<family>Baekmuk Batang</family>
</default>
</alias>
Then I can say in my ~/.fonts.conf
<alias>
<family>serif</family>
<accept>
<family>ZYSong18030</family>
</accept>
</alias>
Regards,
Yao Zhang
_______________________________________________
Fonts mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/fonts