@Override public void setFont(Font f) { if (PlatformUtils.isWindows()) { f = FontFactory.getAdjustedWindowsFont(f); } super.setFont(f); }
/** Set the font in the label to that in the model, or failing that, as per user's default */ protected void setLabelFont() { String fontName = fDiagramModelConnection.getFont(); Font font = FontFactory.get(fontName); // Adjust for Windows DPI if (PlatformUtils.isWindows()) { font = FontFactory.getAdjustedWindowsFont(font); } getConnectionLabel().setFont(font); }