question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Icomoon font will not be rendered with emotion enabled

See original GitHub issue

Verify 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:open
  • Created a year ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
rubytree33commented, Oct 13, 2022

That’s up to the maintainers, since I can’t merge the PR myself.

1reaction
rubytree33commented, Sep 9, 2022

Taking a look at this.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found