Skip to content

Commit 6de8deb

Browse files
committed
fix font weight
1 parent 7db2711 commit 6de8deb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/qcodeedit/lib/qformat.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ QString QFormat::toCSS(bool simplifyCSS) const {
3939
if ( italic )
4040
result += "font-style: italic;";
4141
if ( weight && (weight != QFont::Normal))
42-
result += QString("font-weight: %1;").arg(weight*12-200);
42+
result += QString("font-weight: %1;").arg(weight);
4343
if ( simplifyCSS ) {
4444
if ( overline || underline || strikeout || waveUnderline )
4545
result += QString("text-decoration: %1 %2 %3;").arg(overline?"overline":"").arg(strikeout?"line-through":"").arg(underline?"underline":"");

0 commit comments

Comments
 (0)