Skip to content

Noto emojis are not well-centered #5242

Closed as not planned
Closed as not planned

Description

@TimotheAlbouy

Description

The Noto emojis are a bit offset to the bottom-left compared to other emoji fonts such as Twitter's or Apple's.

#set text(font: "Twitter Color Emoji")
#box(stroke: 1pt + red, "😇")

#set text(font: "Noto Color Emoji")
#box(stroke: 1pt + red, "😇")

image

Reproduction URL

No response

Operating system

Web app

Typst version

  • I am using the latest version of Typst

Activity

  1. added
    bug
    on Oct 18, 2024
  2. added
    text
    needs-investigation
    on Oct 18, 2024
  3. Andrew15-5 commented on Oct 19, 2024

    @Andrew15-5
    Contributor

    The font files can be downloaded here:

    https://github.com/13rac1/twemoji-color-font/releases/download/v15.1.0/TwitterColorEmoji-SVGinOT-15.1.0.zip

    https://github.com/googlefonts/noto-emoji/archive/refs/tags/v2.047.tar.gz

    #let test = box(stroke: red, [l#emoji.face.cool;l])
    #text(font: "Twitter Color Emoji", test)
    #text(font: "Noto Color Emoji", test)

    image

    It's not only not centered, but it also adds some additional space at the top (and to the sides). It's also smaller, but that can be normal.

  4. Enivex commented on Oct 19, 2024

    @Enivex
    Collaborator

    The question is whether this is an issue with the font, or typst's handling of it

  5. fuchsiebabe commented on Oct 31, 2024

    @fuchsiebabe

    The issue is definitely with Noto Color Emoji itself. I'm seeing the same behaviour in Godot, no matter which emoji I pick. When compared with emoji from different typefaces (like Segoe UI Emoji for example) it's definitely off-set in this way. This is an issue with Noto Color Emoji itself.

  6. laurmaedje commented on Oct 31, 2024

    @laurmaedje
    Member

    Thanks, that's good to know!

  7. Enivex commented on Oct 31, 2024

    @Enivex
    Collaborator

    Alternatively Godot has the same font handling issue as typst

  8. fuchsiebabe commented on Oct 31, 2024

    @fuchsiebabe

    Anything's possible, though given that Noto Color Emoji is the only typeface which has this issue in testing a range of different emoji typefaces, I'm naturally more suspicious of Noto than of either Godot or typst. Noto Color Emoji won't display at all in LibreOffice Writer, yet other typeface emoji work just fine there.

  9. Andrew15-5 commented on Oct 31, 2024

    @Andrew15-5
    Contributor

    Noto Color Emoji won't display at all in LibreOffice Writer,

    image

    Oh yeah?

  10. fuchsiebabe commented on Nov 1, 2024

    @fuchsiebabe

    Yeah, annoyingly. It'd be nice if this weren't the case. (LibreOffice 24.8, OpenJDK)
    image

    I've been poking around a bit on the Noto Color Emoji git and I've found there's another version which is Unicode compliant and properly aligned. It's different to the one you get directly from Google

  11. Andrew15-5 commented on Nov 1, 2024

    @Andrew15-5
    Contributor

    Woah, from 7.6 to 24... Currently, I use apt, so I can't check the latest version. I can try latest version later, when I switch to NixOS. Don't know if that will happen in a week or in a month.

    I've been poking around a bit on the Noto Color Emoji git and I've found there's another version which is Unicode compliant and properly aligned. It's different to the one you get directly from Google

    That's the version I was using and still use. I linked it here: #5242 (comment). So I guess the issue is resolved.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugneeds-investigationtext

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions