Skip to main content
Participant
June 22, 2023
Question

Exponent for dynamic text with canvas

  • June 22, 2023
  • 1 reply
  • 393 views

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 has been closed for replies.

    1 reply

    Legend
    June 22, 2023

    "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?

    FMaxantAuthor
    Participant
    June 27, 2023

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