IDEA-167611 [followup] Default printer font size is big on HiDPI display

This commit is contained in:
Anton Tarasov
2017-04-20 18:37:45 +03:00
parent 7594671bb8
commit 4eac2f3550
@@ -113,9 +113,9 @@ class TextPainter extends BasePainter {
myDocument = editorDocument;
myPrintSettings = PrintSettings.getInstance();
String fontName = myPrintSettings.FONT_NAME;
/**
* Printing Graphics is constructed with scale corresponding to the printer DPI settings (~600dpi),
* the font size is expected to be in 96 dpi, so we should normalize it.
/*
Printing Graphics is constructed with scale corresponding to the printer DPI settings (~600dpi),
the font size is expected to be in 96 dpi, so we should normalize it.
*/
int fontSize = Math.round(myPrintSettings.FONT_SIZE / UISettings.getNormalizingScale());
myPlainFont = new Font(fontName, Font.PLAIN, fontSize);