Mercurial > repos > rliterman > csp2
annotate CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/share/fontconfig/conf.avail/90-synthetic.conf @ 68:5028fdace37b
planemo upload commit 2e9511a184a1ca667c7be0c6321a36dc4e3d116d
author | jpayne |
---|---|
date | Tue, 18 Mar 2025 16:23:26 -0400 |
parents | |
children |
rev | line source |
---|---|
jpayne@68 | 1 <?xml version="1.0"?> |
jpayne@68 | 2 <!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd"> |
jpayne@68 | 3 <fontconfig> |
jpayne@68 | 4 <!-- |
jpayne@68 | 5 Artificial oblique for fonts without an italic or oblique version |
jpayne@68 | 6 --> |
jpayne@68 | 7 |
jpayne@68 | 8 <match target="font"> |
jpayne@68 | 9 <!-- check to see if the font is roman --> |
jpayne@68 | 10 <test name="slant"> |
jpayne@68 | 11 <const>roman</const> |
jpayne@68 | 12 </test> |
jpayne@68 | 13 <!-- check to see if the pattern requested non-roman --> |
jpayne@68 | 14 <test target="pattern" name="slant" compare="not_eq"> |
jpayne@68 | 15 <const>roman</const> |
jpayne@68 | 16 </test> |
jpayne@68 | 17 <!-- multiply the matrix to slant the font --> |
jpayne@68 | 18 <edit name="matrix" mode="assign"> |
jpayne@68 | 19 <times> |
jpayne@68 | 20 <name>matrix</name> |
jpayne@68 | 21 <matrix><double>1</double><double>0.2</double> |
jpayne@68 | 22 <double>0</double><double>1</double> |
jpayne@68 | 23 </matrix> |
jpayne@68 | 24 </times> |
jpayne@68 | 25 </edit> |
jpayne@68 | 26 <!-- pretend the font is oblique now --> |
jpayne@68 | 27 <edit name="slant" mode="assign"> |
jpayne@68 | 28 <const>oblique</const> |
jpayne@68 | 29 </edit> |
jpayne@68 | 30 <!-- and disable embedded bitmaps for artificial oblique --> |
jpayne@68 | 31 <edit name="embeddedbitmap" mode="assign"> |
jpayne@68 | 32 <bool>false</bool> |
jpayne@68 | 33 </edit> |
jpayne@68 | 34 </match> |
jpayne@68 | 35 |
jpayne@68 | 36 <!-- |
jpayne@68 | 37 Synthetic emboldening for fonts that do not have bold face available |
jpayne@68 | 38 --> |
jpayne@68 | 39 |
jpayne@68 | 40 <match target="font"> |
jpayne@68 | 41 <!-- check to see if the weight in the font is less than medium which possibly need emboldening --> |
jpayne@68 | 42 <test name="weight" compare="less_eq"> |
jpayne@68 | 43 <const>medium</const> |
jpayne@68 | 44 </test> |
jpayne@68 | 45 <!-- check to see if the pattern requests bold --> |
jpayne@68 | 46 <test target="pattern" name="weight" compare="more_eq"> |
jpayne@68 | 47 <const>bold</const> |
jpayne@68 | 48 </test> |
jpayne@68 | 49 <!-- |
jpayne@68 | 50 set the embolden flag |
jpayne@68 | 51 needed for applications using cairo, e.g. gucharmap, gedit, ... |
jpayne@68 | 52 --> |
jpayne@68 | 53 <edit name="embolden" mode="assign"> |
jpayne@68 | 54 <bool>true</bool> |
jpayne@68 | 55 </edit> |
jpayne@68 | 56 <!-- |
jpayne@68 | 57 set weight to bold |
jpayne@68 | 58 needed for applications using Xft directly, e.g. Firefox, ... |
jpayne@68 | 59 --> |
jpayne@68 | 60 <edit name="weight" mode="assign"> |
jpayne@68 | 61 <const>bold</const> |
jpayne@68 | 62 </edit> |
jpayne@68 | 63 </match> |
jpayne@68 | 64 </fontconfig> |