Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Unicode Emoji support #53

Merged
merged 3 commits into from
Aug 17, 2018
Merged

Remove Unicode Emoji support #53

merged 3 commits into from
Aug 17, 2018

Conversation

yhatt
Copy link
Member

@yhatt yhatt commented Aug 16, 2018

Since Chrome 68, Marpit's Unicode Emoji support implemented on #18 is not working. This problem was found out in marp-team/marp-core#17.

Problems

Windows

We have resolved an issue of not-colored emoji (Segoe UI Emoji) on exported PDF with Chrome in #18. We applied a bit strange workaround by using filter.

However in reality, it made emoji colorize only that have a font size smaller than 342px, and what is worse, Chrome 68's threshold has decreased to 81.9299965px.

At least emoji will render as monochrome text even if the workaround is not worked.

macOS

There is a more serious problem on macOS Chrome. Apple Color Emoji that has applied workaround will vanish on exported PDF when font size is not smaller than 81.9299965px. The current macOS Chrome is rendering colored Emoji on PDF correctly, so the workaround for Windows Segoe UI Emoji will make the problem worse.

Try https://jsfiddle.net/81zpnLmv/25/ on your Chrome to confirm behavior about printing emoji.

Decision

We will remove workarounds to make Unicode Emoji be printable. A minimum requirement to render emoji on PDF has fullfilled even if we do nothing.

We can still track a Chromium issue about not-colored Emoji at https://bugs.chromium.org/p/chromium/issues/detail?id=617379.

To provide consistent emoji, an aggressive conversion logic of Unicode Emoji might port to @marp-team/marp-core.

Yuki Hattori and others added 3 commits August 16, 2018 18:52
Chromium has resolved an issue about printing emoji. We are no longer
need Marpit's Unicode emoji workaround.
@yhatt yhatt merged commit d7133ed into master Aug 17, 2018
@yhatt yhatt deleted the remove-emoji-support branch August 17, 2018 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant