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

Exponent for dynamic text with canvas

New Here ,
Jun 22, 2023 Jun 22, 2023

Copy link to clipboard

Copied

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 ?

Views

117

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

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