Backed out changeset 1632a36342d4 (bug 1074735)

This commit is contained in:
Carsten "Tomcat" Book 2014-10-08 13:06:56 +02:00
Родитель 18d99025c1
Коммит 0c5e86e0fc
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -3431,10 +3431,11 @@ gfxFont::CreateVerticalMetrics()
// We synthesize our own positions, as font metrics don't provide these
// for vertical layout.
metrics->underlineSize = std::max(1.0, metrics->underlineSize);
metrics->underlineOffset = - metrics->maxDescent - metrics->underlineSize;
metrics->underlineOffset = 0; // XXX to be adjusted
metrics->strikeoutSize = std::max(1.0, metrics->strikeoutSize);
metrics->strikeoutOffset = - 0.5 * metrics->strikeoutSize;
metrics->strikeoutOffset =
metrics->maxDescent - 0.5 * metrics->strikeoutSize;
// Somewhat arbitrary values for now, subject to future refinement...
metrics->spaceWidth = metrics->aveCharWidth;