Control where next/font font-face CSS gets injected #57630
hernansartorio
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
Hey, how do you render the iframe? Why doesn't it load the font? Generally speaking |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Goals
I'm building a website builder (similar to the Platforms starter kit) that allows people to build websites and customize the fonts used on them.
My page editor renders a live preview within a controlled iframe, which includes its custom CSS. I would like to use next/font for fonts but I cannot given that the package injects the font-face CSS automatically on the head of the main document. I would be great to be able to control where the CSS gets injected instead so I can include it within the iframe.
Non-Goals
No response
Background
Currently the only alternative for my use case is not using next/font.
Proposal
Be able to control where the next/font CSS gets injected for any given next/font font.
Beta Was this translation helpful? Give feedback.
All reactions