Comment by 🛸 bluesman

Re: "Symbol Or Emoji?"

In: s/Alhena

That's cool! The terminal on MacOS must either not support it or maybe I'm using an older version of Amfora.

🛸 bluesman [OP/mod]

21 hours ago

7 Later Comments ↓

🚬 sy · 21 hours ago:

Yes, Terminal.app cannot handle it. Kitty and Ghostty is fine.

It's rather the symbol width calculation that fails as @darkghost said

🚀 lars_the_bear · 20 hours ago:

My client (Caztor) displays only one thing, and I'm not sure whether it's a symbol or an emoji. Symbol, I think. I'm not entirely sure I even understand the difference.

I guess there's a level of Unicode understanding here that I have not reached.

To be honest, I'm not sure how much effort I need to put into fixing this -- do situations like this arise commonly in practice?

🛸 bluesman [OP/mod] · 18 hours ago:

I actually wouldn't worry about it if you value your sanity. It's a rabbit hole, IMO. I just found an odd corner case on MacOS that works as expected on Linux and Windows.

🛸 bluesman [OP/mod] · 15 hours ago:

It occurred to me I should have used alternating coffee cups instead of biohazards. When I did that, I ended up with a font emoji alternating with a sprite emoji - no symbols. I have no idea why biohazard didn't do the same thing. I assume because the font didn't have a biohazard emoji - meaning JTextPane on MacOS prefers emoji over symbol even with the selector present. This only happened on MacOS, BTW. Linux and Windows worked fine.

Long story short, I found a ridiculous trick to make it work. I wonder what else lurks.

☕︎☕️☕︎☕️☕︎☕️☕︎☕️☕︎☕️☕︎☕️☕︎☕️☕︎☕️☕︎☕️

☕︎☕️☕︎☕️☕︎☕️☕︎☕️☕︎☕️☕︎☕️☕︎☕️☕︎☕️☕︎☕️

☕︎☕️☕︎☕️☕︎☕️☕︎☕️☕︎☕️☕︎☕️☕︎☕️☕︎☕️☕︎☕️

🚬 sy · 13 hours ago:

@bluesman It’s probably a font selection problem, does Java use fontconfig? Apple Symbols and Menlo have that glyph and apps that use the macOS font fallbacks can show it without problem. Note that not the whole Menlo family, just Regular and Bold variants have it. (Also you don’t need VS16 for the coffee emoji)

— /u/sy/image/906

🛸 bluesman [OP/mod] · 12 hours ago:

The bizarre thing is that my test page with the cups would render correctly if I added a letter symbol like the 𝗔 character anywhere in the page. I don't get the rationale.

🚬 sy · 9 hours ago:

That probably loads STIX2 Math font, which also has that glyph. I thought it was my local font, it is actually among Apple system fonts, too. Looks like a font-lookup logic error somewhere.

Original Post

🌒 s/Alhena

🛸 bluesman: [mod]

Symbol Or Emoji? — The following line should alternate between the biohazard symbol and the biohazard emoji. ☣☣️☣☣️☣☣️☣☣️☣☣️☣☣️☣☣️☣☣️☣☣️☣☣️☣☣️☣☣️☣☣️☣☣️☣☣️ What do you see? Thanks to @SavaRocks ascii chess board and some prompting from @sy, I managed to get Alhena to honor the symbol variation selector. If you build from the latest source, you can see what I mean. Other Gemini clients on my system display only the symbol or only the emoji. Amfora starts out with the symbol but switches to the…

💬 12 comments · 1 like · 23 hours ago