90-synthetic.conf revision a32e9e42
12c393a42Smrg<?xml version="1.0"?> 22c393a42Smrg<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> 32c393a42Smrg<fontconfig> 4a32e9e42Smrg <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="1.0"> 5a32e9e42Smrg <its:translateRule translate="no" selector="/fontconfig/*[not(self::description)]"/> 6a32e9e42Smrg </its:rules> 7a32e9e42Smrg 82c393a42Smrg<!-- 92c393a42Smrg Artificial oblique for fonts without an italic or oblique version 102c393a42Smrg --> 112c393a42Smrg 122c393a42Smrg <match target="font"> 132c393a42Smrg <!-- check to see if the font is roman --> 142c393a42Smrg <test name="slant"> 152c393a42Smrg <const>roman</const> 162c393a42Smrg </test> 172c393a42Smrg <!-- check to see if the pattern requested non-roman --> 182c393a42Smrg <test target="pattern" name="slant" compare="not_eq"> 192c393a42Smrg <const>roman</const> 202c393a42Smrg </test> 212c393a42Smrg <!-- multiply the matrix to slant the font --> 222c393a42Smrg <edit name="matrix" mode="assign"> 232c393a42Smrg <times> 242c393a42Smrg <name>matrix</name> 252c393a42Smrg <matrix><double>1</double><double>0.2</double> 262c393a42Smrg <double>0</double><double>1</double> 272c393a42Smrg </matrix> 282c393a42Smrg </times> 292c393a42Smrg </edit> 302c393a42Smrg <!-- pretend the font is oblique now --> 312c393a42Smrg <edit name="slant" mode="assign"> 322c393a42Smrg <const>oblique</const> 332c393a42Smrg </edit> 34a6844aabSmrg <!-- and disable embedded bitmaps for artificial oblique --> 35a6844aabSmrg <edit name="embeddedbitmap" mode="assign"> 36a6844aabSmrg <bool>false</bool> 37a6844aabSmrg </edit> 382c393a42Smrg </match> 392c393a42Smrg 402c393a42Smrg<!-- 412c393a42Smrg Synthetic emboldening for fonts that do not have bold face available 422c393a42Smrg --> 432c393a42Smrg 442c393a42Smrg <match target="font"> 45a32e9e42Smrg <!-- check to see if the weight in the font is less than medium which possibly need emboldening --> 462c393a42Smrg <test name="weight" compare="less_eq"> 472c393a42Smrg <const>medium</const> 482c393a42Smrg </test> 492c393a42Smrg <!-- check to see if the pattern requests bold --> 50a32e9e42Smrg <test target="pattern" name="weight" compare="more_eq"> 51a32e9e42Smrg <const>bold</const> 522c393a42Smrg </test> 532c393a42Smrg <!-- 542c393a42Smrg set the embolden flag 552c393a42Smrg needed for applications using cairo, e.g. gucharmap, gedit, ... 562c393a42Smrg --> 572c393a42Smrg <edit name="embolden" mode="assign"> 582c393a42Smrg <bool>true</bool> 592c393a42Smrg </edit> 602c393a42Smrg <!-- 612c393a42Smrg set weight to bold 622c393a42Smrg needed for applications using Xft directly, e.g. Firefox, ... 632c393a42Smrg --> 642c393a42Smrg <edit name="weight" mode="assign"> 652c393a42Smrg <const>bold</const> 662c393a42Smrg </edit> 672c393a42Smrg </match> 682c393a42Smrg</fontconfig> 69