12c393a42Smrg<?xml version="1.0"?> 2a4e54154Smrg<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd"> 32c393a42Smrg<fontconfig> 42c393a42Smrg<!-- 52c393a42Smrg Artificial oblique for fonts without an italic or oblique version 62c393a42Smrg --> 72c393a42Smrg 82c393a42Smrg <match target="font"> 92c393a42Smrg <!-- check to see if the font is roman --> 102c393a42Smrg <test name="slant"> 112c393a42Smrg <const>roman</const> 122c393a42Smrg </test> 132c393a42Smrg <!-- check to see if the pattern requested non-roman --> 142c393a42Smrg <test target="pattern" name="slant" compare="not_eq"> 152c393a42Smrg <const>roman</const> 162c393a42Smrg </test> 172c393a42Smrg <!-- multiply the matrix to slant the font --> 182c393a42Smrg <edit name="matrix" mode="assign"> 192c393a42Smrg <times> 202c393a42Smrg <name>matrix</name> 212c393a42Smrg <matrix><double>1</double><double>0.2</double> 222c393a42Smrg <double>0</double><double>1</double> 232c393a42Smrg </matrix> 242c393a42Smrg </times> 252c393a42Smrg </edit> 262c393a42Smrg <!-- pretend the font is oblique now --> 272c393a42Smrg <edit name="slant" mode="assign"> 282c393a42Smrg <const>oblique</const> 292c393a42Smrg </edit> 30a6844aabSmrg <!-- and disable embedded bitmaps for artificial oblique --> 31a6844aabSmrg <edit name="embeddedbitmap" mode="assign"> 32a6844aabSmrg <bool>false</bool> 33a6844aabSmrg </edit> 342c393a42Smrg </match> 352c393a42Smrg 362c393a42Smrg<!-- 372c393a42Smrg Synthetic emboldening for fonts that do not have bold face available 382c393a42Smrg --> 392c393a42Smrg 402c393a42Smrg <match target="font"> 41a32e9e42Smrg <!-- check to see if the weight in the font is less than medium which possibly need emboldening --> 422c393a42Smrg <test name="weight" compare="less_eq"> 432c393a42Smrg <const>medium</const> 442c393a42Smrg </test> 452c393a42Smrg <!-- check to see if the pattern requests bold --> 46a32e9e42Smrg <test target="pattern" name="weight" compare="more_eq"> 47a32e9e42Smrg <const>bold</const> 482c393a42Smrg </test> 492c393a42Smrg <!-- 502c393a42Smrg set the embolden flag 512c393a42Smrg needed for applications using cairo, e.g. gucharmap, gedit, ... 522c393a42Smrg --> 532c393a42Smrg <edit name="embolden" mode="assign"> 542c393a42Smrg <bool>true</bool> 552c393a42Smrg </edit> 562c393a42Smrg <!-- 572c393a42Smrg set weight to bold 582c393a42Smrg needed for applications using Xft directly, e.g. Firefox, ... 592c393a42Smrg --> 602c393a42Smrg <edit name="weight" mode="assign"> 612c393a42Smrg <const>bold</const> 622c393a42Smrg </edit> 632c393a42Smrg </match> 642c393a42Smrg</fontconfig> 65