mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-167611 [followup] Default printer font size is big on HiDPI display
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user