#How to make emoji array

1 messages · Page 1 of 1 (latest)

quaint cloak
#

The two blocks might look the same but above is simple unicode symbol and below is emoji variant where u+fe0f is added before each symbol. Top works, bottom errors out expected exactly one character. How do I fix?

#let c = symbol(
    ("c", "♠"),
    ("d", "♥"),
    ("h", "♦"),
    ("s", "♣")
)

9#c.c 8#c.d 7#c.h 6#c.s
#let c = symbol(
    ("c", "♠️"),
    ("d", "♥️"),
    ("h", "♦️"),
    ("s", "♣️")
)

9#c.c 8#c.d 7#c.h 6#c.s
vague sable
#
#let c = (c: "♠️", d: "♥️", h: "♦️", s: "♣️")
quaint cloak
#

thanks that works! however the output is exactly the same as normal symbols, so now I have to find an emoji font right?

vague sable
#

it wont work on PDF unfortunately

#

it's a known bug

#

but it works on png export

quaint cloak
#

do you mean that substituting the symbols with png files will work?

vague sable
#

no

#

i mean that using emoji as unicode characters wont display correctly on PDFs

#

but yes you can use SVGs of emoji as an alternative

quaint cloak
#

thanks will do that

#

how do I mark post as solved?

vague sable
#

ig you can react with ✅ :p

#

thats whats been done before at least