Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite7591aa

Browse files
chore: preload inter and ibm mono fonts in storybook (#19455)
This aims to solve font rendering issues in Storybook like theinconsistent snapshot below.**Inconsistent snapshot:**<img width="3022" height="1552" alt="image"src="https://github.com/user-attachments/assets/ad0e1060-89cc-4255-b601-97ed59286080"/>**References:**-https://www.chromatic.com/docs/troubleshooting-snapshots/#why-are-fonts-in-my-graph-component-rendering-inconsistently-https://fontsource.org/docs/getting-started/preload
1 parent836324e commite7591aa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎site/.storybook/preview-head.html‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<linkrel="preload"href="/node_modules/@fontsource-variable/inter/files/inter-latin-wght-normal.woff2"as="font"type="font/woff2"crossorigin/>
2+
3+
<!-- Web terminal fonts -->
4+
<linkrel="preload"href="/node_modules/@fontsource/ibm-plex-mono/files/ibm-plex-mono-latin-400-normal.woff2"as="font"type="font/woff2"crossorigin/>
5+
<linkrel="preload"href="/node_modules/@fontsource/ibm-plex-mono/files/ibm-plex-mono-latin-600-normal.woff2"as="font"type="font/woff2"crossorigin/>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp