Skip to content

Noto Color Emoji is shrinked in SVG with typst main #8372

Closed

Description

@YDX-2147483647

Description

As shown below, when exporting to SVG, ✅ from Noto Color Emoji is shrinked horizontally with typst main.

Image Image
#set page(height: auto, width: auto, margin: 1em)
#set text(5em)
#block(stroke: blue, width: 1.5em, height: 1.5em, {
  set align(center + horizon)
  set text(font: "Noto Color Emoji", fallback: false)
  emoji.checkmark.box
})

Further experiments

All emojis (👩‍💻🩺☠️🎓🇱🇰💞🎐🎟📻) from Noto Color Emoji have this problem: (v0.14.2 vs. 331f101)

Image Image

Twitter Color Emoji doesn't have this problem: (331f101)
Image

Exporting Noto Color Emoji to PDF works as usual: (331f101)

Image

If anyone has problem reproduce the above results, please let me know. I'm willing to provide the exact version of my Noto Color Emoji.
(The version I am currently testing is the one installed on my system. I'm not sure which version it is at present, and I don't know if all versions are problematic.)

Operating system

Windows

Typst version

  • I am using the latest version of Typst

Activity

  1. added
    bug
    on May 28, 2026
  2. added
    svg
    regression
    on May 28, 2026
  3. Lege19 commented on May 28, 2026

    @Lege19
    Contributor

    similar to #8072, but unclear if that issue was on main or 0.14.2

  4. YDX-2147483647 commented on May 29, 2026

    @YDX-2147483647
    ContributorAuthor

    I see… I confirm that v0.14.2 also shrinks the emoji when exporting to PNG.
    So both this issue and #8367 are about something changing from PNG ≠ SVG = PDF to PNG = SVG ≠ PDF.

  5. laurmaedje commented on Jun 4, 2026

    @laurmaedje
    Member

    #7679 changed SVG export to use the code that PNG uses, so it makes sense that the two now align... But here, PDF and old SVG looks more correct at first glance.

  6. self-assigned this
    on Jun 5, 2026
  7. saecki commented on Jun 5, 2026

    @saecki
    Member

    Can you reproduce this on main? These are the results I get:
    (Same in the test suite and when compiling with the CLI)

    I can reproduce with a different version of the font.

    Source
    #set page(height: auto, width: auto, margin: 1em)
    #set text(5em)
    #block(stroke: blue, width: 1.5em, height: 1.5em, {
      set align(center + horizon)
      set text(font: "Noto Color Emoji", fallback: false)
      emoji.checkmark.box
    })

    test.pdf

    Image Image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugregressionsvg

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions