diff --git a/NEWS.md b/NEWS.md index 035bbde8..7dfa1d5a 100644 --- a/NEWS.md +++ b/NEWS.md @@ -28,6 +28,7 @@ Red Panda C++ Version 1.0.0 - enhancement: auto add parentheis when complete function like MARCOs - fix: wrong font size of exported RTF file - fix: correct tokenize statements like "using ::memcpy"; + - fix: wrong font size of exported HTML file Red Panda C++ Version 0.14.5 - fix: the "gnu c++ 20" option in compiler set options is wrong diff --git a/RedPandaIDE/qsynedit/exporter/synhtmlexporter.cpp b/RedPandaIDE/qsynedit/exporter/synhtmlexporter.cpp index 4e5f71b6..b1a3f2dd 100644 --- a/RedPandaIDE/qsynedit/exporter/synhtmlexporter.cpp +++ b/RedPandaIDE/qsynedit/exporter/synhtmlexporter.cpp @@ -213,7 +213,7 @@ QString SynHTMLExporter::GetHeader() Result += ""; } Result += QString("") - .arg(mFont.pointSize()) + .arg(pixelToPoint(mFont.pixelSize())) .arg(mFont.family()); return Result;