Use fixed font name in the HTML pagination test

This commit is contained in:
Vadim Zeitlin
2018-06-21 01:39:04 +02:00
parent 0393940033
commit 96cca10328

View File

@@ -66,7 +66,7 @@ TEST_CASE("wxHtmlPrintout::Pagination", "[html][print]")
// in the page-break-inside:avoid test to take the same amount of pixels
// for any DPI (12 being the font size used by wxHtmlDCRenderer by default).
const int adjFontSize = 12*wxTheApp->GetTopWindow()->GetContentScaleFactor();
pr.SetStandardFonts(adjFontSize);
pr.SetStandardFonts(adjFontSize, "Helvetica");
wxBitmap bmp(1000, 1000);
wxMemoryDC dc(bmp);