diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2014-01-10 17:11:10 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2014-01-10 17:11:10 -0500 |
commit | 658bb3ccd43658de18fbd43cd91a8e66650e27a7 (patch) | |
tree | 6a64705a20919b8d53b73601d0c3b4f4df6f5b15 /tools/windows_packaging/mingw64/fonts/conf.avail/90-synthetic.conf | |
parent | 3020b224fa2d6e1b6b8a576e8e8e211e0585f2a2 (diff) | |
parent | b1231696caa7d08c80055ca59b18f4b634dc47cf (diff) |
finished merge of cairocanvas with windows and windows+cc branches
Diffstat (limited to 'tools/windows_packaging/mingw64/fonts/conf.avail/90-synthetic.conf')
-rw-r--r-- | tools/windows_packaging/mingw64/fonts/conf.avail/90-synthetic.conf | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/tools/windows_packaging/mingw64/fonts/conf.avail/90-synthetic.conf b/tools/windows_packaging/mingw64/fonts/conf.avail/90-synthetic.conf new file mode 100644 index 0000000000..b8d1e85e1f --- /dev/null +++ b/tools/windows_packaging/mingw64/fonts/conf.avail/90-synthetic.conf @@ -0,0 +1,64 @@ +<?xml version="1.0"?> +<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> +<fontconfig> +<!-- + Artificial oblique for fonts without an italic or oblique version + --> + + <match target="font"> + <!-- check to see if the font is roman --> + <test name="slant"> + <const>roman</const> + </test> + <!-- check to see if the pattern requested non-roman --> + <test target="pattern" name="slant" compare="not_eq"> + <const>roman</const> + </test> + <!-- multiply the matrix to slant the font --> + <edit name="matrix" mode="assign"> + <times> + <name>matrix</name> + <matrix><double>1</double><double>0.2</double> + <double>0</double><double>1</double> + </matrix> + </times> + </edit> + <!-- pretend the font is oblique now --> + <edit name="slant" mode="assign"> + <const>oblique</const> + </edit> + <!-- and disable embedded bitmaps for artificial oblique --> + <edit name="embeddedbitmap" mode="assign"> + <bool>false</bool> + </edit> + </match> + +<!-- + Synthetic emboldening for fonts that do not have bold face available + --> + + <match target="font"> + <!-- check to see if the font is just regular --> + <test name="weight" compare="less_eq"> + <const>medium</const> + </test> + <!-- check to see if the pattern requests bold --> + <test target="pattern" name="weight" compare="more"> + <const>medium</const> + </test> + <!-- + set the embolden flag + needed for applications using cairo, e.g. gucharmap, gedit, ... + --> + <edit name="embolden" mode="assign"> + <bool>true</bool> + </edit> + <!-- + set weight to bold + needed for applications using Xft directly, e.g. Firefox, ... + --> + <edit name="weight" mode="assign"> + <const>bold</const> + </edit> + </match> +</fontconfig> |