Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.9.9, 5.12.2, 5.12.7, 5.14.1, 5.15.0 Alpha
-
None
Description
Code:
QFont font("Arial",12);
QString txt = "Yazı";
qDebug()<<"################";
QFontMetrics fm(font);
width = fm.width(txt);
qDebug()<<"Normal Width: "<<width;
font.setBold(true);
QFontMetrics fm2(font);
width = fm2.width(txt);
qDebug()<<"Bold Width: "<<width;
qDebug()<<"################";
Output:
################
Normal Width: 26
Bold Width: 25
################
See comment https://bugreports.qt.io/browse/QTBUG-76908?focusedCommentId=498035&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-498035 for an example that reproduces the issue.