Icomoon font will not be rendered with emotion enabled
See original GitHub issueVerify canary release
- I verified that the issue exists in the latest Next.js canary release
Provide environment information
Operating System:
Platform: darwin
Arch: x64
Version: Darwin Kernel Version 21.6.0: Sat Jun 18 17:07:25 PDT 2022; root:xnu-8020.140.41~1/RELEASE_X86_64
Binaries:
Node: 14.15.0
npm: 7.11.1
Yarn: 1.22.18
pnpm: N/A
Relevant packages:
next: 12.3.1-canary.0
eslint-config-next: N/A
react: 18.2.0
react-dom: 18.2.0
What browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
Describe the Bug
Background
Since we switched to nextjs@12 we only got minified css classes on development for our @emotion
styles.
The Problem
Now we tried to enable emotion with the compiler.emotion = true
configuration. With that emotion works well except our icomoon font.
The icomoon font will be loaded and added to the styles… but not rendered. I’m not sure what the problem is exactly, for me all the things looks well.
Expected Behavior
Icons should be rendered as a font
Link to reproduction
https://github.com/dominikmatt/nextjs-emotion
To Reproduce
- Add emotion to your nextjs project
- Add a emotion component and define all the icons inside of it
- Enable emotion on next-configuration
const nextConfig = {
compiler: {
emotion: true, // Change to false to get the icon rendered
},
}
Issue Analytics
- State:
- Created a year ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
❍ Docs - IcoMoon
The OS X version of Firefox doesn't render fonts according to how they were designed unless you use -moz-osx-font-smoothing: grayscale; . (supported in...
Read more >Seriously, Don't Use Icon Fonts - Cloud Four
So it's really no wonder that icon fonts became such a hit. Icons displayed via @font-face were resolution-independent and customizable in ...
Read more >Add Emoji to Text Layers – Figma Help Center
If a font doesn't support a character you input, Figma will render that specific character in a Noto font. No more empty spaces...
Read more >Firefox/Tweaks - ArchWiki - Arch Linux
If you are experiencing rendering issues with up-to-date drivers on your machine, you can force-enable Software Webrender by setting the gfx.
Read more >What is Natural Language Processing? - IBM
Together, these technologies enable computers to process human language in the form of text or voice data and to 'understand' its full meaning, ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
That’s up to the maintainers, since I can’t merge the PR myself.
Taking a look at this.