docs(react): Pretendard 폰트 로드 정책 명시 및 가이드 추가 - #50
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
src/index.css의 Storybook-only entry 의도를 주석으로 명시.Changes
packages/react/README.md: "## 사용법" 섹션 안에 "### 2. 폰트 설정 (Pretendard)" 추가. CSS@import/ HTML<link>/ npm self-host 세 가지 로드 방법 안내.packages/react/src/index.css: 이 파일이 Storybook 전용 entry이며 publish 패키지에는 포함되지 않음을 주석으로 명시 (README와 cross-reference).Decisions
호스트 앱 책임 패턴 (자동 번들 X)
대안:
globalFontface+ 풀 변수 폰트 → dynamic subsetting 손실, 한국어 폰트 다운로드 비용 ↑.@font-face복제 → 유지보수 부담, Pretendard 제작자도 비권장.(d)를 선택. 근거:
Testing