annotate toolboxes/graph_visualisation/etc/fonts/conf.avail/90-synthetic.conf @ 0:e9a9cd732c1e tip

first hg version after svn
author wolffd
date Tue, 10 Feb 2015 15:05:51 +0000
parents
children
rev   line source
wolffd@0 1 <?xml version="1.0"?>
wolffd@0 2 <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
wolffd@0 3 <fontconfig>
wolffd@0 4 <!--
wolffd@0 5 Artificial oblique for fonts without an italic or oblique version
wolffd@0 6 -->
wolffd@0 7
wolffd@0 8 <match target="font">
wolffd@0 9 <!-- check to see if the font is roman -->
wolffd@0 10 <test name="slant">
wolffd@0 11 <const>roman</const>
wolffd@0 12 </test>
wolffd@0 13 <!-- check to see if the pattern requested non-roman -->
wolffd@0 14 <test target="pattern" name="slant" compare="not_eq">
wolffd@0 15 <const>roman</const>
wolffd@0 16 </test>
wolffd@0 17 <!-- multiply the matrix to slant the font -->
wolffd@0 18 <edit name="matrix" mode="assign">
wolffd@0 19 <times>
wolffd@0 20 <name>matrix</name>
wolffd@0 21 <matrix><double>1</double><double>0.2</double>
wolffd@0 22 <double>0</double><double>1</double>
wolffd@0 23 </matrix>
wolffd@0 24 </times>
wolffd@0 25 </edit>
wolffd@0 26 <!-- pretend the font is oblique now -->
wolffd@0 27 <edit name="slant" mode="assign">
wolffd@0 28 <const>oblique</const>
wolffd@0 29 </edit>
wolffd@0 30 <!-- and disable embedded bitmaps for artificial oblique -->
wolffd@0 31 <edit name="embeddedbitmap" mode="assign">
wolffd@0 32 <bool>false</bool>
wolffd@0 33 </edit>
wolffd@0 34 </match>
wolffd@0 35
wolffd@0 36 <!--
wolffd@0 37 Synthetic emboldening for fonts that do not have bold face available
wolffd@0 38 -->
wolffd@0 39
wolffd@0 40 <match target="font">
wolffd@0 41 <!-- check to see if the font is just regular -->
wolffd@0 42 <test name="weight" compare="less_eq">
wolffd@0 43 <const>medium</const>
wolffd@0 44 </test>
wolffd@0 45 <!-- check to see if the pattern requests bold -->
wolffd@0 46 <test target="pattern" name="weight" compare="more">
wolffd@0 47 <const>medium</const>
wolffd@0 48 </test>
wolffd@0 49 <!--
wolffd@0 50 set the embolden flag
wolffd@0 51 needed for applications using cairo, e.g. gucharmap, gedit, ...
wolffd@0 52 -->
wolffd@0 53 <edit name="embolden" mode="assign">
wolffd@0 54 <bool>true</bool>
wolffd@0 55 </edit>
wolffd@0 56 <!--
wolffd@0 57 set weight to bold
wolffd@0 58 needed for applications using Xft directly, e.g. Firefox, ...
wolffd@0 59 -->
wolffd@0 60 <edit name="weight" mode="assign">
wolffd@0 61 <const>bold</const>
wolffd@0 62 </edit>
wolffd@0 63 </match>
wolffd@0 64 </fontconfig>