Skip to main content
Participant
Jun 22, 2023 2:38 PM UTC
Question

Exponent for dynamic text with canvas

Hi everyone! Someone has a solution for display properly a number or text in exponent in a dynamic text with canvas.

In my case, I want "18" in exponent, so I try to put this code "\u00B9 \u2078", but the text display a correct "1" but for the "8" it's not the same font.
I search everywher but impossible to find a solution.
Can someone help me please ?

    This topic is closed to new replies. Start a new post to keep the conversation going.

    2 replies

    Legend
    Jun 22, 2023 7:26 PM UTC

    "Exponent" isn't a type of text formatting, it's a mathematical operator. What you're attempting to do is display superscript numbers.

     

    Have you verified that superscript 8 actually exists in the font you're using?

    Translate
    FMaxantAuthor
    Participant
    Jun 27, 2023 12:35 PM UTC

    Thanks for your answer. I use Poppins (google fonts).
    So, if I understood, I have to find a font compatible.

    Translate