2006-09-10 06:32:14 +02:00
|
|
|
<?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>
|
2009-06-28 19:49:09 +02:00
|
|
|
<!-- and disable embedded bitmaps for artificial oblique -->
|
|
|
|
<edit name="embeddedbitmap" mode="assign">
|
|
|
|
<bool>false</bool>
|
|
|
|
</edit>
|
2006-09-10 06:32:14 +02:00
|
|
|
</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">
|
2017-09-15 20:28:12 +02:00
|
|
|
<const>regular</const>
|
2006-09-10 06:32:14 +02:00
|
|
|
</test>
|
|
|
|
<!-- check to see if the pattern requests bold -->
|
2017-09-15 20:28:12 +02:00
|
|
|
<test target="pattern" name="weight" compare="more_eq">
|
|
|
|
<const>bold</const>
|
2006-09-10 06:32:14 +02:00
|
|
|
</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>
|