Comment # 51 on bug 904015 from
JFYI..

(In reply to Marguerite Su from comment #46)
>  <match target="font">
>   <test compare="more_eq" name="size" qual="any">
>    <double>0</double>
>   </test>
>   <test compare="less_eq" name="size" qual="any">
>    <double>8</double>
>   </test>
>   <edit mode="assign" name="antialias">
>    <bool>false</bool>
>   </edit>
>  </match>
>  <match target="font">
>   <test compare="more_eq" name="pixelsize" qual="any">
>    <double>0</double>
>   </test>
>   <test compare="less_eq" name="pixelsize" qual="any">
>    <double>11</double>
>   </test>
>   <edit mode="assign" name="antialias">
>    <bool>false</bool>
>   </edit>
>  </match>

They probably assume/had detected dpi=96:

On my system:

$ fc-match -v sans:size=8 | grep 'dpi\|size'
Pattern has 44 elts (size 48)
    size: 8(f)(s)
    pixelsize: 8.33333(f)(s)
    dpi: 75(f)(s)
$

For requested dpi=96:

$ fc-match -v sans:size=8:dpi=96 | grep 'dpi\|size'
Pattern has 44 elts (size 48)
    size: 8(f)(s)
    pixelsize: 10.6667(f)(s)
    dpi: 96(f)(s)
$

Not sure why they add both checks, but the 'size' could perhaps be more
appropriate than on 'pixelsize' I offered in comment 45.


You are receiving this mail because: