Skip to main content

max / alloy_tui

2.5 KB · 76 lines History Blame Raw
1 <?xml version="1.0"?>
2 <!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
3 <!--
4 Alloy fontconfig
5 ================
6 Optimized for reading. Every app that asks fontconfig for a generic
7 family (monospace, sans-serif, serif) gets Alloy's readability picks.
8
9 - monospace -> IosevkaTerm Nerd Font (Term variant: no ligatures, safe for TUIs)
10 - sans-serif -> Atkinson Hyperlegible (max letter distinguishability)
11 - serif -> browser/system default; Alloy declines to prescribe
12
13 Departure Mono is *not* here — it is the Alloy brand mark, invoked
14 by name where wanted (marquee UI, headers), never as a generic family.
15
16 Source of truth: docs/STACK.md ("Fonts" section) and docs/TOKENS.md.
17 -->
18 <fontconfig>
19
20 <!-- Monospace: IosevkaTerm Nerd Font -->
21 <alias>
22 <family>monospace</family>
23 <prefer>
24 <family>IosevkaTerm Nerd Font</family>
25 <family>Iosevka Term</family>
26 <family>Iosevka Nerd Font</family>
27 <family>Iosevka</family>
28 <family>DejaVu Sans Mono</family>
29 </prefer>
30 </alias>
31
32 <!-- Sans-serif: Atkinson Hyperlegible -->
33 <alias>
34 <family>sans-serif</family>
35 <prefer>
36 <family>Atkinson Hyperlegible</family>
37 <family>Inter</family>
38 <family>Cantarell</family>
39 <family>DejaVu Sans</family>
40 </prefer>
41 </alias>
42
43 <!-- Serif: leave to system. Alloy declines to prescribe. -->
44 <alias>
45 <family>serif</family>
46 <prefer>
47 <family>Source Serif 4</family>
48 <family>Source Serif Pro</family>
49 <family>Liberation Serif</family>
50 <family>DejaVu Serif</family>
51 </prefer>
52 </alias>
53
54 <!-- Emoji: system emoji font -->
55 <alias>
56 <family>emoji</family>
57 <prefer>
58 <family>Noto Color Emoji</family>
59 </prefer>
60 </alias>
61
62 <!--
63 Rendering defaults — screen-readable, no antialiasing tricks
64 that fight the fonts' own hinting.
65 -->
66 <match target="font">
67 <edit name="antialias" mode="assign"><bool>true</bool></edit>
68 <edit name="hinting" mode="assign"><bool>true</bool></edit>
69 <edit name="hintstyle" mode="assign"><const>hintslight</const></edit>
70 <edit name="rgba" mode="assign"><const>rgb</const></edit>
71 <edit name="lcdfilter" mode="assign"><const>lcddefault</const></edit>
72 <edit name="autohint" mode="assign"><bool>false</bool></edit>
73 </match>
74
75 </fontconfig>
76