Bug 8848 - Subscript and superscript vertical positioning is incorrect
Summary: Subscript and superscript vertical positioning is incorrect
Status: RESOLVED FIXED
Alias: None
Product: DejaVu
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: All All
: high normal
Assignee: Deja Vu bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-01 00:55 UTC by webaccount
Modified: 2007-03-09 11:40 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description webaccount 2006-11-01 00:55:23 UTC
Subscript:
Sans Condensed: the vertical position of subscript text (as achieved in HTML
using <sub>) is too high - it is aligned with the baseline instead of being just
below it.

Superscript:
Sans, Serif, Sans Mono, Serif Condensed: the vertical position of superscript
text (as achieved in HTML using <sup>) is too low - it is aligned with the
baseline instead of being just above the top of the text.
Sans Condensed: the vertical position of superscript text (as achieved in HTML
using <sup>) is much too high - it is about four line-heights above the top of
the text instead of being just above it.

The HTML to reproduce all of the above problems (on both Windows XP and Fedora
Core 3 using Firefox 1.0.7) is as follows:

<html>
<style type="text/css">
p{border-width:1px;border-style:dotted;}
</style>
<body>
<p style="font-family:DejaVu Sans">
DejaVu Sans<sub>subscript</sub>ABCDEF<sup>superscript</sup>GHIJKL
</p>
<p style="font-family:DejaVu Serif">
DejaVu Serif<sub>subscript</sub>ABCDEF<sup>superscript</sup>GHIJKL
</p>
<p style="font-family:DejaVu Sans Mono">
DejaVu Sans Mono<sub>subscript</sub>ABCDEF<sup>superscript</sup>GHIJKL
</p>
<p style="font-family:DejaVu Sans Condensed">
DejaVu Sans Condensed<sub>subscript</sub>ABCDEF<sup>superscript</sup>GHIJKL
</p>
<p style="font-family:DejaVu Serif Condensed">
DejaVu Serif Condensed<sub>subscript</sub>ABCDEF<sup>superscript</sup>GHIJKL
</p>
</body>
</html>
Comment 1 Eduardo Dobay 2006-11-11 05:48:06 UTC
On my system, I have a similar problem:

* Under Linux (Debian-based), subscript and superscript text is positioned fine.

* Under Windows XP, only when using Firefox (since earlier versions;
  using 2.0 now):
   - Subscript text maybe seems a bit too low; subscript letters which fit in
     "x-height" lie below the baseline.
   - Superscript text is (wrongly) aligned with the baseline, just as Henry Oke
     described.
  This occurs with all fonts from DejaVu family, as well as with fonts from
  Bitstream Vera family.
Comment 2 Eduardo Dobay 2006-11-11 05:52:40 UTC
Errata: after updating DejaVu fonts from 2.7 to 2.11, I have the much-too-high
problem with Sans Condensed. To me it seems more than 5 line-heights above the
baseline.
Comment 3 Ben Laenen 2006-11-11 06:49:56 UTC
I've just committed a fix for Condensed Sans. FontForge seems to have 
scrambled those values for some reason.

As for the superscript being too low or subscript being too high: I'm tempted 
to say that's a Firefox for Windows bug right now. I can't reproduce it with 
other programs, and Firefox in Linux shows it correctly.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.