diff --git a/config/native-ui.php b/config/native-ui.php index 171b025b..c153ef49 100644 --- a/config/native-ui.php +++ b/config/native-ui.php @@ -184,11 +184,14 @@ 'font-xl' => 24, ], - // Geist for people, Geist Mono for the machine. The files are the web app's, - // under the SIL Open Font License (resources/fonts/OFL.txt). + // Geist for people, Geist Mono for the machine, at the weights the web + // loads: Geist 400, 500, 600 and 700, Geist Mono 400 and 500. The files are + // Geist 1.7.2, under the SIL Open Font License (resources/fonts/OFL.txt). 'fonts' => [ 'default' => 'Geist-Regular', + 'medium' => 'Geist-Medium', 'semibold' => 'Geist-SemiBold', + 'bold' => 'Geist-Bold', 'mono' => 'GeistMono-Regular', 'mono-medium' => 'GeistMono-Medium', ], diff --git a/resources/fonts/Geist-Bold.ttf b/resources/fonts/Geist-Bold.ttf new file mode 100644 index 00000000..863b2868 Binary files /dev/null and b/resources/fonts/Geist-Bold.ttf differ diff --git a/resources/fonts/Geist-Medium.ttf b/resources/fonts/Geist-Medium.ttf new file mode 100644 index 00000000..96cb22f8 Binary files /dev/null and b/resources/fonts/Geist-Medium.ttf differ diff --git a/tests/Feature/FontsTest.php b/tests/Feature/FontsTest.php index 467af6ae..e7e5e1ac 100644 --- a/tests/Feature/FontsTest.php +++ b/tests/Feature/FontsTest.php @@ -48,8 +48,10 @@ function bundlesFont(string $token): bool ARRAY_FILTER_USE_KEY, ); - // Never bundled, so these two draw in the system font for now. - unset($unknown['medium'], $unknown['bold']); - expect($unknown)->toBe([]); }); + +it('draws medium and bold in Geist at the weights the web loads', function () { + expect(config('native-ui.fonts.medium'))->toBe('Geist-Medium') + ->and(config('native-ui.fonts.bold'))->toBe('Geist-Bold'); +});