Don't adjust monospace font size.
This commit is contained in:
parent
141c1b4a7e
commit
5b8eb3a5b8
1 changed files with 2 additions and 2 deletions
|
|
@ -188,7 +188,7 @@ struct Metrics {
|
|||
|
||||
const auto family = font.family();
|
||||
const auto basic = u"Open Sans"_q;
|
||||
if (family == basic) {
|
||||
if (family == basic || !adjust) {
|
||||
return simple();
|
||||
}
|
||||
|
||||
|
|
@ -334,7 +334,7 @@ struct Metrics {
|
|||
}
|
||||
font.setPixelSize(size);
|
||||
|
||||
const auto adjust = (overriden && !skipSizeAdjustment);
|
||||
const auto adjust = !skipSizeAdjustment && (overriden || system);
|
||||
const auto metrics = ComputeMetrics(font, adjust);
|
||||
font.setPixelSize(metrics.pixelSize);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue