Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Exponent for dynamic text with canvas

New Here ,
Jun 22, 2023 Jun 22, 2023

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 ?

229
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 22, 2023 Jun 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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 27, 2023 Jun 27, 2023
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines