- fix: wrong font size of exported HTML file

This commit is contained in:
Roy Qu 2022-03-15 21:38:33 +08:00
parent 54592276c8
commit 0fd70d7ab6
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -213,7 +213,7 @@ QString SynHTMLExporter::GetHeader()
Result += "<!--StartFragment-->";
}
Result += QString("<span style=\"font: %1pt %2;\">")
.arg(mFont.pointSize())
.arg(pixelToPoint(mFont.pixelSize()))
.arg(mFont.family());
return Result;