Fix Replace all px font-size: to pt for HiDPI monitors

This commit is contained in:
Phenom 2021-02-19 17:47:29 +01:00
parent 21e775d116
commit e39a77a445
8 changed files with 46 additions and 46 deletions

View file

@ -1523,7 +1523,7 @@ void ChatWidget::chooseFont()
text += " font-family:" + font.family() + ";";
text += font.bold() ? " font-weight: bold;" : "";
text += font.italic() ? " font-style: italic;" : "";
text += " font-size:" + QString::number(font.pointSize()) + "px;";
text += " font-size:" + QString::number(font.pointSize()) + "pt;";
text += font.strikeOut() ? " text-decoration: line-through;" : "";
text += font.underline() ? " text-decoration: underline;" : "";
text += "\">" + cursor.selectedText().toHtmlEscaped() + "</p>";