[Fontconfig] [PATCH 1/1] Add lcdfiltercustom option: controls the filter individual weights
James Cloos
cloos at jhcloos.com
Mon Nov 21 05:15:49 PST 2011
I suspect a list of <double/> or <int/> elements would be better than a <string/>.
Your example would then be either:
<match target="font">
<edit mode="assign" name="lcdfilter">
<const>lcdcustom</const>
</edit>
</match>
<match target="font">
<edit mode="assign" name="lcdfiltercustom">
<double>.0625</double>
<double>.25</double>
<double>.4375</double>
<double>.25</double>
<double>.0625</double>
</edit>
</match>
or someting like:
<match target="font">
<edit mode="assign" name="lcdfilter">
<const>lcdcustom</const>
</edit>
</match>
<match target="font">
<edit mode="assign" name="lcdfiltercustom">
<int>16</int>
<int>64</int>
<int>112</int>
<int>64</int>
<int>16</int>
</edit>
</match>
if the range is u8.
The dtd needs to be updated to mention this.
An lcdheavy conf.avail file also should be part of the changeset.
Otherwise, I, at least, am very much in favour of this.
-JimC
--
James Cloos <cloos at jhcloos.com> OpenPGP: 1024D/ED7DAEA6
More information about the Fontconfig
mailing list