From acec04210e2f94f01bf6aeea29f8eef12ba54a1a Mon Sep 17 00:00:00 2001 From: megacz Date: Fri, 30 Jan 2004 06:49:14 +0000 Subject: [PATCH] 2002/07/19 05:16:31 darcs-hash:20040130064914-2ba56-95931f8dba57fab2932ef6e3e5361a9e685a37c3.gz --- CHANGES | 2 ++ src/org/xwt/plat/AWT.java | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 655a98a..f61670d 100644 --- a/CHANGES +++ b/CHANGES @@ -288,3 +288,5 @@ 18-Jul megacz XWT.java: added write-only 'proxyAuthorization' field. +18-Jul megacz AWT.java: boosted font size by 2 points on Java12 + diff --git a/src/org/xwt/plat/AWT.java b/src/org/xwt/plat/AWT.java index 5f12430..9b01d2f 100644 --- a/src/org/xwt/plat/AWT.java +++ b/src/org/xwt/plat/AWT.java @@ -430,7 +430,11 @@ public class AWT extends Platform { if (ret == null) { pf.parse(font); if (pf.name.equals("tty")) pf.name = "monospace"; - ret = new MetricatedFont(pf.name, (pf.bold ? Font.BOLD : 0) | (pf.italic ? Font.ITALIC : 0), pf.size); + + // Java's fonts tend to be, on average, two points smaller than Win32/X11 fonts. This is most acute in + // the proxy password dialog on Linux + ret = new MetricatedFont(pf.name, (pf.bold ? Font.BOLD : 0) | (pf.italic ? Font.ITALIC : 0), pf.size + 2); + fontCache.put(font, ret); } return ret; -- 1.7.10.4