Mercurial > dillo_port1.3
changeset 939:c8eaa0d240bf
Tweak for e28cf4b71832 (set SUB to 1/3)
author | corvid <corvid@lavabit.com> |
---|---|
date | Wed, 11 Feb 2009 20:34:28 -0300 |
parents | b134ea74331b |
children | cfeafb3ad293 |
files | dw/textblock.cc |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/dw/textblock.cc Wed Feb 11 17:03:54 2009 -0300 +++ b/dw/textblock.cc Wed Feb 11 20:34:28 2009 -0300 @@ -1282,12 +1282,12 @@ /* Adjust the text baseline if the word is <SUP>-ed or <SUB>-ed. */ if (word->style->valign == core::style::VALIGN_SUB) - diff = word->size.ascent / 2; + diff = word->style->font->ascent / 3; else if (word->style->valign == core::style::VALIGN_SUPER) { diff -= word->style->font->ascent / 2; } if (word->spaceStyle->valign == core::style::VALIGN_SUB) - spaceDiff = word->spaceStyle->font->ascent / 2; + spaceDiff = word->spaceStyle->font->ascent / 3; else if (word->spaceStyle->valign == core::style::VALIGN_SUPER) { spaceDiff -= word->spaceStyle->font->ascent / 2; } @@ -1603,7 +1603,7 @@ * potentially the line's height. */ if (style->valign == core::style::VALIGN_SUB) - size->descent += (size->ascent / 2); + size->descent += (size->ascent / 3); else if (style->valign == core::style::VALIGN_SUPER) size->ascent += (size->ascent / 2); }