Swing Fonts in Linux II: ScreenShots

Moazam has asked me to include some screenshots of enhanced fonts in Linux. Click on the image below to see one:

Reduced screenshot. Click to enlarge

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.

Comentarios:

Sweeet. :)

Enviado por Moazam en junio 16, 2004 a las 02:18 AM CEST #

Enviar un comentario:
Los comentarios han sido deshabilitados.
About

swinger

Search

Archives
« abril 2014
lunmarmiéjueviesábdom
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
    
       
Hoy