X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fxwt%2Fplat%2FAWT.java;h=9b01d2fb6a3feda78bbcd5ec115d47d457bf9921;hb=acec04210e2f94f01bf6aeea29f8eef12ba54a1a;hp=5f12430625c92e0a4e6a1195d5146b08f4762704;hpb=37fa198f384c4cbdb122a44e9dc33e5287fc1ad2;p=org.ibex.core.git 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;