Mercurial > repos > rliterman > csp2
diff CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/share/fontconfig/conf.avail/10-scale-bitmap-fonts.conf @ 68:5028fdace37b
planemo upload commit 2e9511a184a1ca667c7be0c6321a36dc4e3d116d
author | jpayne |
---|---|
date | Tue, 18 Mar 2025 16:23:26 -0400 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/share/fontconfig/conf.avail/10-scale-bitmap-fonts.conf Tue Mar 18 16:23:26 2025 -0400 @@ -0,0 +1,83 @@ +<?xml version="1.0"?> +<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd"> +<fontconfig> + <description>Bitmap scaling</description> +<!-- + 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. + --> +<match target="font"> + <test name="outline" compare="eq"> + <bool>false</bool> + </test> + <edit name="pixelsizefixupfactor" mode="assign"> + <divide> + <name target="pattern">pixelsize</name> + <name target="font" >pixelsize</name> + </divide> + </edit> +</match> +<!-- + For non-scalable bitmap fonts (ie. non-color), skip + minor scaling if hinting is enabled. + --> +<match target="font"> + <test name="outline" compare="eq"> + <bool>false</bool> + </test> + <test name="scalable" compare="eq"> + <bool>false</bool> + </test> + <test name="hinting" compare="eq"> + <bool>true</bool> + </test> + <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"> + <test name="outline" compare="eq"> + <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>