-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfonts.conf
108 lines (83 loc) · 4.27 KB
/
fonts.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<description>The PixelPerfect setup for pretty web typography</description>
<!-- Initial settings for both low DPI and high DPI screens.
This overwrites desktop settings from GNOME, KDE, etc.
Improved results are obtainable by tweaking as commented below. -->
<match target="font">
<edit name="antialias" mode="assign">
<bool>true</bool>
</edit>
</match>
<match target="font">
<edit name="hinting" mode="assign">
<bool>true</bool>
</edit>
</match>
<match target="font">
<edit name="hintstyle" mode="assign">
<!-- Fonts that benefit from using BCI are set in hinting.conf. -->
<const>hintslight</const>
</edit>
</match>
<match target="font">
<edit name="rgba" mode="assign">
<!-- Use 'none' on CRTs, if your screen changes orientation often,
if you use multiple screens with different orientations, or if
DPI is so low that you can see the subpixel colors "bleeding".
Test at http://www.lagom.nl/lcd-test/subpixel.php. -->
<const>none</const>
</edit>
</match>
<match target="font">
<edit name="lcdfilter" mode="assign">
<!-- Use 'lcdnone' on CRTs or if you rotate your monitor regularly.
Beware that 'lcdlegacy' can exhibit really bad color fringes
if glyphs are not extremely well hinted to the pixel grid.
(So it only works well if high-quality hinted fonts are used.)
Choose at http://www.spasche.net/files/lcdfiltering/, but make
sure your display is RGB if using an LCD to test this. -->
<const>lcdnone</const>
</edit>
</match>
<!-- The order of included configuration files is significant. -->
<!-- Common *initial* sets of rules for both loDPI and hiDPI screens -->
<!-- Sets the most appropriate type of hinting for selected typefaces. -->
<include prefix="xdg">fontconfig/hinting.conf</include>
<!-- Some minor generic fixes. -->
<include prefix="xdg">fontconfig/fixes.conf</include>
<!-- OS-specific rules. No harm if enabled on others. -->
<include prefix="xdg">fontconfig/os.conf</include>
<!-- Rules for low DPI screens only -->
<!-- Settings and aliases for low DPI screens, covering "web safe" fonts.
Using <accept> for aliases doesn't work with Chrome. FIXME#1
Firefox doesn't load local fonts for some sites. FIXME#2
WebKitGTK only matches first option in a font stack. FIXME#3 -->
<include prefix="xdg">fontconfig/lowdpi.conf</include>
<!-- Disables antialiasing for fonts perfectly hinted at specific sizes. -->
<include prefix="xdg">fontconfig/pixelperfect.conf</include>
<!-- Blacklists common typefaces that are not that well hinted. This way,
perfectly hinted fonts are used more, e.g. as font-family fallbacks.-->
<include prefix="xdg">fontconfig/blacklists.conf</include>
<!-- Common *final* sets of rules for both loDPI and hiDPI screens -->
<!-- Less important aliases common to both low DPI and high DPI screens. -->
<include prefix="xdg">fontconfig/common.conf</include>
<!-- Useful links:
To check "web safe" fonts:
http://www.w3schools.com/cssref/css_websafe_fonts.asp
http://web.archive.org/web/20160725073138/http://www.w3schools.com/cssref/css_websafe_fonts.asp
https://reeddesign.co.uk/test/webfonts.html
http://www.ampsoft.net/webdesign-l/WindowsMacFonts.html
To compare similar typefaces:
http://www.identifont.com/differences?first=Verdana&second=PT+Sans+Caption
https://saruwakakun.com/en/web-safe-fonts
To check how probable is for a font to be present on mainstream OS'es:
https://www.cssfontstack.com/
https://lonewolfonline.net/web-safe-font-list/
https://archive.is/20130112220820/www.codestyle.org/css/font-family/sampler-MacResults.shtml
To check/calculate DPI:
https://www.sven.de/dpi/
https://www.calculators.tech/dpi-calculator
-->
</fontconfig>