|
Moazam has asked me to include some screenshots of enhanced fonts in Linux. Click on the image below to see one:
So I got the SwingSet2 sources (and resources) from my JDK distribution (demos/jfc/SwingSet2 directory) and modified the AquaTheme quickly. I then set up my JAVA_FONTS environment variable and launched "The Gimp" to grab a screenshot. Fast. The Java code I included in the "AquaTheme.java" file looks like this:
private final FontUIResource userFont =
new FontUIResource( new Font( "Tahoma", Font.PLAIN, 12 ) );
private final FontUIResource controlFont =
new FontUIResource( new Font( "Tahoma", Font.BOLD, 14 ) );
public FontUIResource getUserTextFont() { return userFont; }
public FontUIResource getControlTextFont() { return controlFont; }
// Same for getMenuTextFont, etc.
|
Enviado por Moazam en junio 16, 2004 a las 09:18 AM CEST #