Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why the display of Unicode characters for superscripted digits are not at the same height?

Why the display of Unicodes for superscripts of digits are not at the same height? This is specially noticeable if you make two digit numbers out of the superscript digits. Some of them look fine but the rest look out of the place with respect to each other. Am I missing something? Or is this how it is?

like image 424
Dogahe Avatar asked Oct 05 '11 14:10

Dogahe


People also ask

How do I type a superscript in Unicode?

Besides numbers, there are also Unicode superscript letters: lowercase alphabet but without a q: ᵃ ᵇ ᶜ ᵈ ᵉ ᶠ ᵍ ʰ ⁱ ʲ ᵏ ˡ ᵐ ⁿ ᵒ ᵖ ʳ ˢ ᵗ ᵘ ᵛ ʷ ˣ ʸ ᶻ uppercase alphabet but without C, F, Q, S, X, Y, and Z: ᴬ ᴮ ᴰ ᴱ ᴳ ᴴ ᴵ ᴶ ᴷ ᴸ ᴹ ᴺ ᴼ ᴾ ᴿ ᵀ ᵁ ⱽ ᵂ

Does the superscript effect places characters below the normal line?

A subscript or superscript is a character (such as a number or letter) that is set slightly below or above the normal line of type, respectively. It is usually smaller than the rest of the text. Subscripts appear at or below the baseline, while superscripts are above.


2 Answers

Like jrturton mentions, ¹, ² and ³ were from a legacy character set (Latin 1) and therefore included in a different place. This also means that lots of fonts don't have support for more superscript numbers, as many only strive for Latin, Greek and Cyrillic with a few punctuation symbols thrown in. So the remaining ones are taken from a different font over which you as an author have little to no control.

As an example:

Superscript numbers

Those are the superscript numerals from 1 to 9 and 0. The run of text was formatted in Arial in Word. You see what happened to the rest of them. Contrary to what jrturton believes, there is no reshaping of existing glyphs involved. This is just font substitution.

like image 73
Joey Avatar answered Sep 28 '22 10:09

Joey


The out of place ones (1,2 and 3) were added before the rest (see wikipedia: http://en.wikipedia.org/wiki/Unicode_superscripts_and_subscripts), and are from a different unicode block. That doesn't explain why they look different but it may be that those ones are actual characters in most fonts, and the remaining ones are just adjusted versions of the standard glyphs.

This appears to be how it is and you are right, it looks terrible when you are trying to make multi digit superscript numbers. I don't know if it applies to all fonts but it is very noticeable on the iOS system font.

If anyone has a way to make this work, I will put a bounty up on this question.

UPDATE

I knocked up a little program to cycle through all fonts on the phone and display the superscript numerals from 0 to 9. The following fonts had a consistent appearance across all digits:

  • Zapfino
  • Courier-Bold
  • AmericanTypewriter (also -Bold)
  • HiraKakuProN-W6 (also -W3)
  • Noteworthy-Bold (also -Light)
like image 41
jrturton Avatar answered Sep 28 '22 08:09

jrturton