Skip to content

Commit e33101c

Browse files
i18n(ko-KR): update astro-assets.mdx (#13483)
Co-authored-by: Yan <61414485+yanthomasdev@users.noreply.github.com>
1 parent 32a4465 commit e33101c

File tree

2 files changed

+258
-165
lines changed

2 files changed

+258
-165
lines changed

src/content/docs/ko/guides/fonts.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ Astro는 Google Fonts 및 기타 오픈 소스 글꼴 사용을 간소화하는
9191

9292
<Steps>
9393

94-
1. 필요한 `cssVariable` 속성을 가진 [`<Font />`](/ko/reference/modules/astro-assets/) 컴포넌트를 페이지 헤드에 가져와 포함합니다. 일반적으로 전용 `Head.astro` 컴포넌트나 [레이아웃](/ko/basics/layouts/) 컴포넌트에 직접 포함합니다.
94+
1. 필요한 `cssVariable` 속성을 가진 [`<Font />`](/ko/reference/modules/astro-assets/#font-) 컴포넌트를 페이지 헤드에 가져와 포함합니다. 일반적으로 전용 `Head.astro` 컴포넌트나 [레이아웃](/ko/basics/layouts/) 컴포넌트에 직접 포함합니다.
9595

9696
```astro title="src/layouts/Layout.astro" ins={2,7}
9797
---
@@ -175,7 +175,7 @@ Astro는 Google Fonts 및 기타 오픈 소스 글꼴 사용을 간소화하는
175175

176176
## 프로그래밍 방식으로 글꼴 데이터 접근
177177

178-
[`fontData`](/ko/reference/modules/astro-assets/) 객체를 사용하면 하위 수준의 글꼴 패밀리 데이터를 프로그래밍 방식으로 가져올 수 있습니다. 예를 들어, 적절한 [형식](/ko/reference/configuration-reference/) 구성과 결합하여 [satori](https://github.com/vercel/satori)를 사용하여 OpenGraph 이미지를 생성하기 위한 [API 라우트](/ko/guides/endpoints/#서버-엔드포인트-api-라우트)에서 사용할 수 있습니다:
178+
[`fontData`](/ko/reference/modules/astro-assets/#fontdata) 객체를 사용하면 하위 수준의 글꼴 패밀리 데이터를 프로그래밍 방식으로 가져올 수 있습니다. 예를 들어, 적절한 [형식](/ko/reference/configuration-reference/) 구성과 결합하여 [satori](https://github.com/vercel/satori)를 사용하여 OpenGraph 이미지를 생성하기 위한 [API 라우트](/ko/guides/endpoints/#서버-엔드포인트-api-라우트)에서 사용할 수 있습니다:
179179

180180
```tsx title="src/pages/og.png.ts" {2} "fontData[\"--font-roboto\"]"
181181
import type{ APIRoute } from "astro";

0 commit comments

Comments
 (0)