Is there an accepted way to adjust font glyphs in order to simulate text figures?
Background
Text figures are "lowercase" digits. You normally use lowercase digits where you also use lowercase text (e.g. in the middle of a sentence).
Keyboards were never created with uppercase and lowercase digits; and Unicode doesn't specifically encode them, as "they are not considered separate characters from lining figures, only a different way of writing the same characters."
Which brings me to my question; what is the accepted way to create lowercase figures out of a font's standard "uppercase ones?
Wikipedia mentions that normally:
012
arex
-height68
have ascenders34579
have descenders
My first attempt (in photoshop) would be to:
- smush 012
- nudge 34579 down
- leave 68 where they are:
But the skwooshed figures (0, 1, 2) look distinctly unpleasant.
If the Unicode consortium suggests that "lowercase digits" can simply be constructed from te "uppercase" ones - what do they recommend i do?
Ideally in HTML
My end goal is to display lowercase text in a browser. i know some fonts (e.g. Georgia) already display all their digits as lowercase:
But i'm not asking how to switch to using Georgia; i'm asking how to construct lining figures out of non-lining ones.
And since this is for display on the web, i realize that i'd probably end up having to apply per-character formatting:
<!doctype html">
<html>
<head>
<style type="text/css">
body {
font-family: "Segoe UI", "Calibri", sans-serif;
font-size: larger;
}
.xheight {
font-size: 1.5ex;
}
.descender {
position: relative;
bottom: -0.4ex;
}
</style>
</head>
<body>
<p>In the year <span class="xheight">21</span><span class="descender">5</span><span>6</span> the Romulan war...
</body>
</html>
Rendering as:
Which, again, doesn't look as pleasing as i think it should.