Use of mode="assign" in default configuration
Bug #1192175 reported by
BubuXP
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
fontconfig (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The additional .conf files that Ubuntu's patches create in conf.avail/ use mode="assign" to set preferences.
But in this upstream bug report:
https:/
it's said that the default configurations should use mode="append", and the use of "assign" should be limited to user configuration. The original fontconfig .conf files in Ubuntu already use "append", as correction of this bug.
Ubuntu versions that present this bug: all.
fontconfig versions that present this bug: all.
CVE References
To post a comment you must log in.
Correcting the above bug may introduce this issue: /bugs.freedeskt op.org/ show_bug. cgi?id= 60748
https:/
that has been fixed by using target="pattern" instead of target="font".
For example, the 10-antialias.conf file at the moment is:
<?xml version="1.0"?> ><bool> true</bool> </edit>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!-- Use the Antialiasing -->
<match target="font">
<edit name="antialias" mode="assign"
</match>
</fontconfig>
it should become:
<?xml version="1.0"?> bool>true< /bool>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!-- Use the Antialiasing -->
<match target="pattern">
<edit name="antialias" mode="append">
<
</edit>
</match>
</fontconfig>