khaledhosny / harftex

A TeX enginge with embedded HarfBuzz and Lua
GNU General Public License v2.0
30 stars 0 forks source link

Segoe UI Emoji font has strange color (title editted) #11

Closed emojifreak closed 5 years ago

emojifreak commented 5 years ago

Segoe UI Emoji font is an emoji font in MS Windows and it contains both black-and-white version and color version.

When I process

\documentclass{minimal}
\usepackage{harfload}
\font\testbw={name:Segoe UI Emoji:mode=node}
\font\testcolor={name:Segoe UI Emoji:mode=harf}
\begin{document}
\testcolor
😄👌☃⛄
\testbw
😄👌☃⛄
\end{document}

I get test2.png which is almost what I expect. The colors look strange.

But when I process

\documentclass{minimal}
\usepackage{harfload}
\font\testbw={name:Segoe UI Emoji:mode=node}
\font\testcolor={name:Segoe UI Emoji:mode=harf}
\begin{document}
\testbw
😄👌☃⛄
\testcolor
😄👌☃⛄
\end{document}

I get

test3.png

I do not have the color emojis. The latter behavior seems a bug.

khaledhosny commented 5 years ago

Unfortunately loading the same font using both node/base mode and harf mode is not supported. The way luaotfload and harfload load the fonts are incompatible.

It might be possible to get this to work, but not a priority at the moment.

emojifreak commented 5 years ago

@khaledhosny Thanks. I understood the priority of the developement. The color of Segoi UI Emoji seems very strange. Is it an expected behavior?? The color of Segoi UI Emoji is, in my view, always strange even when only mode=harf is used.

khaledhosny commented 5 years ago

We don't currently support transparency, see khaledhosny/harf#19, which might be the reason.

khaledhosny commented 5 years ago

Turns out that transparency is not involved here, I was just using the wrong colors.