2013-01-08 00:59:17 +01:00
|
|
|
<?xml version="1.0"?>
|
2020-03-28 15:01:35 +01:00
|
|
|
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
|
2013-01-08 00:59:17 +01:00
|
|
|
<fontconfig>
|
2014-03-27 07:10:44 +01:00
|
|
|
<description>Bitmap scaling</description>
|
2015-04-30 17:25:59 +02:00
|
|
|
<!--
|
|
|
|
If font is bitmap, calculate scale factor.
|
|
|
|
Note that color bitmap fonts have scalable=true, while
|
|
|
|
non-color ones have scalable=false. Both groups have outline=false.
|
|
|
|
-->
|
2013-01-08 00:59:17 +01:00
|
|
|
<match target="font">
|
2015-04-30 17:25:59 +02:00
|
|
|
<test name="outline" compare="eq">
|
2013-01-08 00:59:17 +01:00
|
|
|
<bool>false</bool>
|
|
|
|
</test>
|
|
|
|
<edit name="pixelsizefixupfactor" mode="assign">
|
|
|
|
<divide>
|
|
|
|
<name target="pattern">pixelsize</name>
|
|
|
|
<name target="font" >pixelsize</name>
|
|
|
|
</divide>
|
|
|
|
</edit>
|
|
|
|
</match>
|
2015-04-30 17:25:59 +02:00
|
|
|
<!--
|
|
|
|
For non-scalable bitmap fonts (ie. non-color), skip
|
|
|
|
minor scaling if hinting is enabled.
|
|
|
|
-->
|
2013-01-08 00:59:17 +01:00
|
|
|
<match target="font">
|
2015-04-30 17:25:59 +02:00
|
|
|
<test name="outline" compare="eq">
|
|
|
|
<bool>false</bool>
|
|
|
|
</test>
|
2013-01-08 00:59:17 +01:00
|
|
|
<test name="scalable" compare="eq">
|
|
|
|
<bool>false</bool>
|
|
|
|
</test>
|
2015-04-30 17:25:59 +02:00
|
|
|
<test name="hinting" compare="eq">
|
|
|
|
<bool>true</bool>
|
|
|
|
</test>
|
2013-01-08 00:59:17 +01:00
|
|
|
<edit name="scalingnotneeded" mode="assign">
|
|
|
|
<and>
|
|
|
|
<less>
|
|
|
|
<name>pixelsizefixupfactor</name>
|
|
|
|
<double>1.2</double>
|
|
|
|
</less>
|
|
|
|
<more>
|
|
|
|
<name>pixelsizefixupfactor</name>
|
|
|
|
<double>0.8</double>
|
|
|
|
</more>
|
|
|
|
</and>
|
|
|
|
</edit>
|
|
|
|
</match>
|
|
|
|
<match target="font">
|
|
|
|
<test name="scalingnotneeded" compare="eq">
|
|
|
|
<bool>true</bool>
|
|
|
|
</test>
|
|
|
|
<edit name="pixelsizefixupfactor" mode="assign">
|
|
|
|
<double>1.0</double>
|
|
|
|
</edit>
|
|
|
|
</match>
|
|
|
|
<!--
|
|
|
|
If we *are* going to scale, go ahead and do it.
|
|
|
|
-->
|
|
|
|
<match target="font">
|
2015-04-30 17:25:59 +02:00
|
|
|
<test name="outline" compare="eq">
|
2013-01-08 00:59:17 +01:00
|
|
|
<bool>false</bool>
|
|
|
|
</test>
|
|
|
|
<test name="pixelsizefixupfactor" compare="not_eq">
|
|
|
|
<double>1.0</double>
|
|
|
|
</test>
|
|
|
|
<edit name="matrix" mode="assign">
|
|
|
|
<times>
|
|
|
|
<name>matrix</name>
|
|
|
|
<matrix>
|
|
|
|
<name>pixelsizefixupfactor</name> <double>0</double>
|
|
|
|
<double>0</double> <name>pixelsizefixupfactor</name>
|
|
|
|
</matrix>
|
|
|
|
</times>
|
|
|
|
</edit>
|
|
|
|
<edit name="size" mode="assign">
|
|
|
|
<divide>
|
|
|
|
<name>size</name>
|
|
|
|
<name>pixelsizefixupfactor</name>
|
|
|
|
</divide>
|
|
|
|
</edit>
|
|
|
|
</match>
|
|
|
|
|
|
|
|
</fontconfig>
|