Commit 87affba
committed
Fix Google Fonts missing font hinting info
Google fonts returns files that have the font hinting instructions
removed when the user agent is set as OSX. This is almost certainly due
to the fact that OSX disabled sub-pixel antialiasing by default back
with the release of Mojave.
Switching out the user agent for an equivalent windows one will ensure
that the font hinting is included, dramatically improving the rendering
of most fonts on 1x resolution screens where font hinting is enabled.
This seems to result in a roughly 20% increase in the size of the
fetched fonts.1 parent 0e973f7 commit 87affba
File tree
2 files changed
+2
-2
lines changed- crates/next-core/src/next_font/google
- packages/font/src/google
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
0 commit comments