mastodon: 4.3.1 -> 4.3.2 (#361487)
[NixPkgs.git] / pkgs / by-name / al / alcom / use-local-fonts.patch
blobe28dee822a291fd3fc1b93d581057c661db389ac
1 diff --git a/vrc-get-gui/app/fonts.ts b/vrc-get-gui/app/fonts.ts
2 index 855de943..3fd6a0b6 100644
3 --- a/vrc-get-gui/app/fonts.ts
4 +++ b/vrc-get-gui/app/fonts.ts
5 @@ -1,5 +1,3 @@
6 -import {Noto_Sans_Mono} from "next/font/google";
7 +import localFont from "next/font/local";
9 -export const notoSansMono = Noto_Sans_Mono({
10 - subsets: ["latin"]
11 -});
12 +export const notoSansMono = localFont({ src: './fonts/noto-sans.ttf' })
13 diff --git a/vrc-get-gui/app/layout.tsx b/vrc-get-gui/app/layout.tsx
14 index f38ab32d..723101b7 100644
15 --- a/vrc-get-gui/app/layout.tsx
16 +++ b/vrc-get-gui/app/layout.tsx
17 @@ -1,13 +1,11 @@
18 import type {Metadata} from "next";
19 -import {Noto_Sans_JP} from "next/font/google";
20 +import localFont from "next/font/local";
21 import "./globals.css";
22 import 'react-toastify/dist/ReactToastify.css';
23 import {SideBar} from "@/components/SideBar";
24 import {Providers} from "@/components/providers";
26 -const notoSansJP = Noto_Sans_JP({
27 - subsets: ["latin"],
28 -});
29 +const notoSansJP = localFont({ src: "./fonts/noto-sans-jp.ttf", });
31 export const metadata: Metadata = {
32 title: "Create Next App",