unicodia icon indicating copy to clipboard operation
unicodia copied to clipboard

Green Outline

Open MAZ06 opened this issue 6 months ago • 23 comments

U+1F512 has a green outline for some reason in Windows 11.

Image

MAZ06 avatar Jul 07 '25 21:07 MAZ06

Show me the same sign in other software… I don’t even know how to answer.

Mercury13 avatar Jul 07 '25 21:07 Mercury13

Image

No green outline.

MAZ06 avatar Jul 07 '25 21:07 MAZ06

https://github.com/microsoft/fluentui-emoji/blob/main/assets/Locked/Flat/locked_flat.svg

No green outline.

MAZ06 avatar Jul 07 '25 21:07 MAZ06

THE SAME sign, 1F512. Drawn with font Segoe UI Emoji rather than with SVG. It’s clearly a font+renderer trouble.

Mercury13 avatar Jul 07 '25 21:07 Mercury13

I'm not sure what you want. The green outline should not be there.

MAZ06 avatar Jul 07 '25 21:07 MAZ06

Show me the SAME emoji 1F512 drawn with SEGOE UI font in ANOTHER PROGRAM. For example: browser, Word, LibreOffice…

Mercury13 avatar Jul 07 '25 21:07 Mercury13

This is clearly a question of text drawing method. Because of W7 and pesky bugs, I use rather old Qt, and I don’t even know what to do.

Mercury13 avatar Jul 07 '25 21:07 Mercury13

Of course, I cannot draw an SVG if we check whether the system can draw the character somehow.

Mercury13 avatar Jul 07 '25 21:07 Mercury13

Windows 11 font is giving me the 3D version: Image

I don't know where Unicodia is getting the flat version.

MAZ06 avatar Jul 07 '25 21:07 MAZ06

What is the font’s name? Segoe UI Emoji?

Mercury13 avatar Jul 07 '25 21:07 Mercury13

Yes.

MAZ06 avatar Jul 07 '25 21:07 MAZ06

No! It’s a separate Fluent set.

Mercury13 avatar Jul 07 '25 22:07 Mercury13

Unicodia says "Segoe UI Emoji". But I have no idea what font file it's using for the flat emojis.

MAZ06 avatar Jul 07 '25 22:07 MAZ06

“Segoe UI Emoji” contains flat emoji. 3D emoji are from a special set available using a special API. I can experiment with Direct2D, but IDK.

Mercury13 avatar Jul 07 '25 22:07 Mercury13

@MAZ06 What version of Segoe UI Emoji do you have? It has changed with different versions of Windows 11.

v1.31 - 2020-12-22 - Windows 11 - 2016 characters (old flat) Image

v1.33 - 2021-10-21 - Windows 11 - 2003 characters - COLRv0 (new flat) Image

v1.35 - 2022-06-00 - Windows 11 - 2040 characters - COLRv0 - looks the same

v1.45 - 2023-06-14 - Windows 11 23H2 - now COLRv1 (with gradients) Image

v1.51 - 2024-03-01 - Windows 11 23H2 - COLRv1 - looks the same

@Mercury13 Pretty sure they have both COLRv0 and COLRv1 in the same font now. (along with the monochrome versions in the glyf table )

What his image looks like is the COLRv0 version with some of the COLRv1 gradient or shading overlaid on it. The COLRv0 and the COLRv1 glyphs are both in the COLR table, but they have different formats (this kinda threw Affinity at first). So make sure what you are reading is the correct pieces.

kenmcd avatar Jul 07 '25 23:07 kenmcd

I have 1.51.

MAZ06 avatar Jul 07 '25 23:07 MAZ06

I just rely on other’s rendering. Most probably GDI. I don’t have typography engine. I’m working on Egyptian now, already >25 misrenders, less than 2 sheets checked. Then #495, incomplete emoji. So let me release w/o fonts, and then I’ll experiment with DirectWrite.

Mercury13 avatar Jul 07 '25 23:07 Mercury13

With Egyptian I’m just scared, misrenders pop and pop after a simple look at the characters.

Mercury13 avatar Jul 07 '25 23:07 Mercury13

Red outline.

Image

MAZ06 avatar Jul 30 '25 19:07 MAZ06

Strange, cannot repeat.

Mercury13 avatar Oct 24 '25 10:10 Mercury13

Though repeats on other character…

Mercury13 avatar Oct 24 '25 10:10 Mercury13

I did some further checking and the current font file only contains COLRv1 (no COLRv0). My comment above is incorrect.

So whatever you are using must fully support COLRv1 to work correctly.

kenmcd avatar Oct 24 '25 18:10 kenmcd

I do not use, I just display it, probably with GDI.

Mercury13 avatar Oct 25 '25 11:10 Mercury13