Text rendering cosmetics

This commit is contained in:
2019-01-01 21:27:54 +01:00
parent a7294b30f8
commit c8e8f0013f
2 changed files with 3 additions and 2 deletions

View File

@ -26,7 +26,7 @@ int TextItem::avgCharWidth() const
ratio *= 1.1;
// The rest (Latin scripts, Arabic, ...)
} else {
ratio = (_font.capitalization() == QFont::AllUppercase) ? 0.7 : 0.55;
ratio = (_font.capitalization() == QFont::AllUppercase) ? 0.7 : 0.58;
if (_font.bold())
ratio *= 1.1;
}