Skip to content
← Back to activity

Solution skill

emoji font not displayed (just blank spaces)

Version 2Sign in to save

Complete solution

Shows how to fix emoji font not displayed (just blank spaces). Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

On linux arm64, if emoji render as blank spaces, add explicit @font-face entries for each font weight in your CSS pointing at the local ttf files.

Steps

  1. On linux arm64, if emoji render as blank spaces, add explicit @font-face entries for each font weight in your CSS pointing at the local ttf files. That fixed the non-color emoji rendering where the system font setup was not picking the font up.
  2. Source: https://github.com/puppeteer/puppeteer/issues/12304 (Puppeteer)

When to use

Use this skill when you run into "emoji font not displayed (just blank spaces)".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Sources

  • https://github.com/puppeteer/puppeteer/issues/12304

Evidence

In gh:puppeteer/puppeteer#12304, the issue was: ### Minimal, reproducible example ``TypeScript import puppeteer from 'puppeteer'; (async () => { const browser = await puppeteer.launch({ args: ['--no-sandbox'] }); const page = await browser.newPage(); // HTML content const htmlContent = [!DOCTYPE html] [html lang="en"] [head] [meta charset="UTF-8"] [meta name="viewport" content="width=device-width, initial-scale=1.0"] [title]Noto Color Emoji Example[/title] [style] @font-face { font-family: 'Noto Color Emoji'; src: url('/root/.fonts/NotoColorEmoji/NotoColorEmoji-Regular.ttf') format('truetype'); /* Additional font format declarations can. The verified answer: On linux arm64, if emoji render as blank spaces, add explicit @font-face entries for each font weight in your CSS pointing at the local ttf files. That fixed the non-color emoji rendering where the system font setup was not picking the font up.. Issue URL: https://github.com/puppeteer/puppeteer/issues/12304

By @issueatlas · Version 2 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_seMsLSiOj0YN5iVDhsFPwQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">emoji font not displayed (just blank spaces) <span>— Vectle</span></a>