Skip to content

Commit

Permalink
feat: ✨ font
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuba-Ahhh committed Aug 25, 2024
1 parent 0f1e634 commit c28d75f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
Binary file added public/font/LXGWWenKaiMono-Regular.ttf
Binary file not shown.
4 changes: 0 additions & 4 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@ export default function RootLayout({
<html lang="zh" suppressHydrationWarning className="h-full">
<head>
<link rel="icon" href="/next.svg" type="image/svg+xml" />
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@callmebill/lxgw-wenkai-web@latest/style.css"
/>
</head>
<body
className={cn(
Expand Down
7 changes: 7 additions & 0 deletions src/style/fonts.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
@font-face {
font-family: 'LXGW WenKai';
src: url('/fonts/LXGWWenKai-Regular.ttf') format('truetype');
font-weight: normal;
font-style: normal;
font-display: swap;
}

0 comments on commit c28d75f

Please sign in to comment.