зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 1632a36342d4 (bug 1074735)
This commit is contained in:
Родитель
18d99025c1
Коммит
0c5e86e0fc
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче