From dad48b7a6023105f72e5b59b2e105b5a06dd5135 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Fri, 24 Jan 2025 17:43:16 +0800 Subject: [PATCH] :bug: Fix font compieling errors --- src/components/events/CountdownTimer.tsx | 1 + src/pages/events/2025-lunar-countdown.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/src/components/events/CountdownTimer.tsx b/src/components/events/CountdownTimer.tsx index c386943..29d54dc 100644 --- a/src/components/events/CountdownTimer.tsx +++ b/src/components/events/CountdownTimer.tsx @@ -11,6 +11,7 @@ export interface TimeDiff { const serifFont = Noto_Serif_TC({ weight: ['400', '500', '700'], + subsets: ['latin'], display: 'swap', }) diff --git a/src/pages/events/2025-lunar-countdown.tsx b/src/pages/events/2025-lunar-countdown.tsx index 0157821..342b2a3 100644 --- a/src/pages/events/2025-lunar-countdown.tsx +++ b/src/pages/events/2025-lunar-countdown.tsx @@ -5,6 +5,7 @@ import { useState } from 'react' const serifFont = Noto_Serif_TC({ weight: ['400', '500', '700'], + subsets: ['latin'], display: 'swap', })