[10 mod] Built-in superscript/subscript characters don't match OpenType subs and sups

Bug #683186 reported by Denis Moyogo Jacquerye
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Font Family
Confirmed
Undecided
Unassigned

Bug Description

Superscript characters and subscript characters don't match semantically equivalent characters with OpenType 'sups' and 'subs' features.
Shouldn't they be identical. Shouldn't "¹⁹" be the same as "<sups>19</sups>"?

Revision history for this message
Denis Moyogo Jacquerye (moyogo) wrote :
summary: - super/subscript characters don't match OpenType subs and sups
+ [10 mod] super/subscript characters don't match OpenType subs and sups
Revision history for this message
Matthew Paul Thomas (mpt) wrote : Re: [10 mod] super/subscript characters don't match OpenType subs and sups

Denis, thanks for the well-illustrated report -- and sorry for the multi-year delay!

As far as I can tell, when an app is not using the sups/subs tables, the position and size of superscript/subscript characters is up to the app. For example, this screenshot shows the same superscript characters in Firefox (data:text/html;charset=UTF-8,<p style="font-family:Ubuntu;font-size:70;">19<sup>19</sup>¹⁹</p>), LibreOffice, and AbiWord. They have different position and size in all three.

So unless there's something I'm missing, this is not a problem in the font itself. If you want a particular app to use sups/subs characters automatically when available, ask the developers of that app. (I doubt they would, though, because for any glyph that wasn't in the table, the app would have to fall back to algorithmic superscript/subscript, and the mixture would look bad.)

Changed in ubuntu-font-family:
status: New → Invalid
Revision history for this message
Denis Moyogo Jacquerye (moyogo) wrote :

Hi Matthew. No worries :-).

I shouldn’t have used <sups>19</sups> as it’s too close to the HTML <sup>19</sup>, which is not what I meant.
I meant to say that the glyphs of the characters ¹⁹ U+00B9, U+2079 are at different height than the glyphs of 19 with the OpenType 'sups' feature applied.

<div style="font-family: Ubuntu; font-size: 70;">
<span>19</span>
<span>¹⁹₁₉</span>
<span style="font-feature-settings: 'sups' on; -webkit-font-feature-settings: 'sups' on; -moz-font-feature-settings: 'sups' on">19</span><span style="font-feature-settings: 'subs' on; -webkit-font-feature-settings: 'subs' on; -moz-font-feature-settings: 'subs' on">19</span>
<span><sup>19</sup><sub>19</sub></span>
</div>

As you say, it is expected that the HTML <sup>19</sup> would look different.

One might consider this a non-issue as both the superscript characters and the superscript OpenType glyphs are probably not going to appear next to each other.

Revision history for this message
Paul Sladen (sladen) wrote :

Ah ha! Thank you for that clarification Dennis!

Revision history for this message
Kevin Godby (godbyk) wrote :

The Unicode characters align with the numerators and denominators, though (see attached.)

Changed in ubuntu-font-family:
status: Invalid → Confirmed
summary: - [10 mod] super/subscript characters don't match OpenType subs and sups
+ [10 mod] Built-in superscript/subscript characters don't match OpenType
+ subs and sups
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.