Flipping text glyphs

For some projects I’m working on, I’m using various icons from symbol fonts (shout out to the Core UI fonts). Unfortunately these often exist in one orientation when it turns out I need the other, e.g. a right-facing icon when I need a left-facing one.

I’ve tried putting them in text(dir: rtl) with no effect at all, and putting them inside boxes or rects with negative width, which also doesn’t seem to work for text (I’ve used this with images before so worth a try).

Is there a way to make a font glyph (or a whole string of glyphs) display backwards? This needs to work for e.g. a single glyph in the middle of a line of icons - I can do fiddly things with putting them in individual table cells or similar if necessary, but I don’t want to change the overall display of text.

Perhaps scale + box?

#lorem(5) #box(scale(x: -100%)[This is mirrored.]) #lorem(5)

#lorem(5) #box(scale(x: -100%)[#emoji.airplane #emoji.computer]) #lorem(5)

It’s a bit wonky when mirroring longer paragraphs, but this shouldn’t be an issue if you’re dealing with individual glyphs

This works perfectly for my issue, thank you!