googlefonts / roboto

The Roboto family of fonts
Apache License 2.0
3.85k stars 309 forks source link

superiors, inferiors, numerators, denominators and fractions are inconsistent #108

Open moyogo opened 9 years ago

moyogo commented 9 years ago

Roboto has 5 sets of superior, inferior, numerator, denominator figures and basic math symbols. Some of these sets are incomplete. There’s a tiny offset difference between the superiors and numerators but the fraction 'numr' feature mixes both for its numerators. The 'sups', 'subs' and 'sinf' features are missing.

The "*superior" group of superiors: zerosuperior onesuperior twosuperior threesuperior fivesuperior sixsuperior sevensuperior eightsuperior ninesuperior equalsuperior minussuperior parenleftsuperior parenrightsuperior plussuperior But foursuperior is called uni2074.

There are a few inferior figures and symbols with "inferior" in their names: oneinferior sixinferior nineinferior parenleftinferior This set is incomplete is completed by inferior figures and symbols with "sub" in their names: zerosub twosub threesub fivesub eightsub sevensub foursub plussub minussub equalsub parenrightsub The "sub" suffix is also used for combining diacritics below.

There are numerators with ".frac" in their names: zero.frac four.frac five.frac six.frac seven.frac eight.frac nine.frac The name is unclear, they should be renamed with .numr. The 'numr' feature uses these and onesuperior twosuperior threesuperior which are superiors (different offset).

There are denominators with ".sup" in their names: zero.sup one.sup two.sup three.sup four.sup five.sup six.sup seven.sup eight.sup nine.sup This is misleading, they should be renamed with .dnom. The 'dnom' feature uses these as denominators.

The cmap has 2070 00B9 00B2 00B3 2074..207E 2080...208E mapped to zerosuperior onesuperior twosuperior threesuperior uni2074 fivesuperior sixsuperior sevensuperior eightsuperior ninesuperior plussuperior minussuperior equalsuperior parenleftsuperior parenrightsuperior zerosub oneinferior twosub threesub foursub fivesub sixinferior sevensub eightsub nineinferior plussub minussub equalsub parenleftinferior parenrightsub

The fraction feature does not give fraction that look like the precomposed fractions: ¼ ½ ¾ ⅐ ⅑ ⅒ ⅓ ⅔ ⅕ ⅖ ⅗ ⅘ ⅙ ⅚ ⅛ ⅜ ⅝ ⅞ ⅟ ↉. The first two lines are the precomposed fractions and the last three are using the 'frac' feature. screen shot 2015-09-08 at 22 25 51 These should be adjusted (spacing or kerning) so they, or any other fraction, look like the precomposed ones.

moyogo commented 9 years ago

Just saw some of this was in #22 already