Details
-
Bug
-
Resolution: Cannot Reproduce
-
P2: Important
-
None
-
5.4.0
-
None
-
Windows 7, MSVC2013 32bit
Description
Setting font engine to freetype
And using any font available on the system (i.e. Arial, Times New Roman... ) with style set to bold and/or italic style is generated instead of using available font.
I attached pictures from Font Sampler example with and without freetype.
Sometimes generated bold is wrong with bigger pixel size set to bigger than 63 gives output as shown in boldbug.png
void paintEvent(QPaintEvent * /*e*/) { QPainter p(this); QFont font("Times New Roman"); font.setBold(true); font.setPixelSize(63); p.setFont(font); p.drawText(10,70, "Times 63"); font.setPixelSize(64); p.setFont(font); p.drawText(10,170, "Times 64"); }