2 <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
5 Artificial oblique for fonts without an italic or oblique version
9 <!-- check to see if the font is roman -->
13 <!-- check to see if the pattern requested non-roman -->
14 <test target="pattern" name="slant" compare="not_eq">
17 <!-- multiply the matrix to slant the font -->
18 <edit name="matrix" mode="assign">
21 <matrix><double>1</double><double>0.2</double>
22 <double>0</double><double>1</double>
26 <!-- pretend the font is oblique now -->
27 <edit name="slant" mode="assign">
28 <const>oblique</const>
30 <!-- and disable embedded bitmaps for artificial oblique -->
31 <edit name="embeddedbitmap" mode="assign">
37 Synthetic emboldening for fonts that do not have bold face available
41 <!-- check to see if the font is just regular -->
42 <test name="weight" compare="less_eq">
45 <!-- check to see if the pattern requests bold -->
46 <test target="pattern" name="weight" compare="more">
51 needed for applications using cairo, e.g. gucharmap, gedit, ...
53 <edit name="embolden" mode="assign">
58 needed for applications using Xft directly, e.g. Firefox, ...
60 <edit name="weight" mode="assign">
64 Hinting will be done before Embolden in freetype2,
65 but in such case, Embolden will get wrong result
66 on some glyph contours after applying hinting.
67 Actually, hinting should be done after embolden, but we can't
68 fix it in current freetype2. So as a workaround, just turn off
69 hinting if we want to do embolden.
71 <edit name="hintstyle" mode="assign">
72 <const>hintnone</const>