From 0fd70d7ab6498ce296f608e29e7f28f3e763c7a5 Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Tue, 15 Mar 2022 21:38:33 +0800 Subject: [PATCH] - fix: wrong font size of exported HTML file --- NEWS.md | 1 + RedPandaIDE/qsynedit/exporter/synhtmlexporter.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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;