mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1074735 pt 1 - Use more sensible values for underline and strikeout position in vertical font metrics. r=smontagu
This commit is contained in:
parent
33735a103a
commit
ace92f1b69
@ -3431,11 +3431,10 @@ 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 = 0; // XXX to be adjusted
|
||||
metrics->underlineOffset = - metrics->maxDescent - metrics->underlineSize;
|
||||
|
||||
metrics->strikeoutSize = std::max(1.0, metrics->strikeoutSize);
|
||||
metrics->strikeoutOffset =
|
||||
metrics->maxDescent - 0.5 * metrics->strikeoutSize;
|
||||
metrics->strikeoutOffset = - 0.5 * metrics->strikeoutSize;
|
||||
|
||||
// Somewhat arbitrary values for now, subject to future refinement...
|
||||
metrics->spaceWidth = metrics->aveCharWidth;
|
||||
|
Loading…
Reference in New Issue
Block a user