|
23 | 23 | } |
24 | 24 |
|
25 | 25 | @font-face { |
26 | | - font-family: 'SF Mono'; |
| 26 | + font-family: 'Paper Mono'; |
27 | 27 | font-weight: normal; |
28 | | - src: local('SFMono-Regular'), local('ui-monospace'); |
29 | | - /* Match 14px Unica to 13.25px SF Mono */ |
30 | | - size-adjust: calc(100% * 13.25 / 14); |
31 | | -} |
32 | | - |
33 | | -@font-face { |
34 | | - font-family: 'SF Mono'; |
35 | | - font-weight: bold; |
36 | | - src: local('SFMono-Bold'), local('ui-monospace'); |
37 | | - /* Match 14px Unica to 13.25px SF Mono */ |
38 | | - size-adjust: calc(100% * 13.25 / 14); |
39 | | -} |
40 | | - |
41 | | -@font-face { |
42 | | - font-family: Menlo; |
43 | | - font-weight: normal; |
44 | | - src: local('Menlo-Regular'); |
45 | | - /* Match other monospace fonts to SF Mono in width */ |
46 | | - size-adjust: calc(100% * 13.5 / 14); |
47 | | - ascent-override: 95%; |
48 | | -} |
49 | | - |
50 | | -@font-face { |
51 | | - font-family: Menlo; |
52 | | - font-weight: bold; |
53 | | - src: local('Menlo-Bold'); |
54 | | - /* Match other monospace fonts to SF Mono in width */ |
55 | | - size-adjust: calc(100% * 13.5 / 14); |
56 | | - ascent-override: 95%; |
57 | | -} |
58 | | - |
59 | | -@font-face { |
60 | | - font-family: Consolas; |
61 | | - font-weight: normal; |
62 | | - src: local('Consolas'); |
63 | | - /* Match other monospace fonts to SF Mono in width */ |
64 | | - size-adjust: calc(100% * 14.75 / 14); |
65 | | - ascent-override: 85%; |
66 | | -} |
67 | | - |
68 | | -@font-face { |
69 | | - font-family: Consolas; |
70 | | - font-weight: bold; |
71 | | - src: local('Consolas-Bold'); |
72 | | - /* Match other monospace fonts to SF Mono in width */ |
73 | | - size-adjust: calc(100% * 14.75 / 14); |
74 | | - ascent-override: 85%; |
75 | | -} |
76 | | - |
77 | | -@font-face { |
78 | | - font-family: 'DejaVu Sans Mono'; |
79 | | - font-weight: normal; |
80 | | - src: local('DejaVuSansMono'); |
| 28 | + src: url('/fonts/paper-mono.woff2') format('woff2'); |
| 29 | + /* Reduce the size to balance with the sans-serif fonts */ |
81 | 30 | size-adjust: calc(100% * 13.5 / 14); |
82 | 31 | } |
83 | 32 |
|
84 | 33 | @font-face { |
85 | | - font-family: 'DejaVu Sans Mono'; |
| 34 | + font-family: 'Paper Mono'; |
86 | 35 | font-weight: bold; |
87 | | - src: local('DejaVuSansMono-Bold'); |
| 36 | + src: url('/fonts/paper-mono.woff2') format('woff2'); |
| 37 | + font-variation-settings: 'wght' 650; |
| 38 | + /* Reduce the size to balance with the sans-serif fonts */ |
88 | 39 | size-adjust: calc(100% * 13.5 / 14); |
89 | 40 | } |
90 | | - |
91 | | -@font-face { |
92 | | - font-family: Inconsolata; |
93 | | - font-weight: normal; |
94 | | - src: local('Inconsolata-Regular'); |
95 | | - size-adjust: calc(100% * 15.75 / 14); |
96 | | -} |
97 | | - |
98 | | -@font-face { |
99 | | - font-family: Inconsolata; |
100 | | - font-weight: bold; |
101 | | - src: local('Inconsolata-Bold'); |
102 | | - size-adjust: calc(100% * 15.75 / 14); |
103 | | -} |
0 commit comments