You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
406 B
Java
17 lines
406 B
Java
FontLister
|
|
|
|
package com.ack.gui.awt.geometry;
|
|
|
|
import java.awt.*;
|
|
|
|
public class FontLister {
|
|
|
|
public static void main( String[] argv ) {
|
|
Font fonts[] = GraphicsEnvironment.getLocalGraphicsEnvironment().getAllFonts();
|
|
for( int i = 0; i < fonts.length; i++ ) {
|
|
System.out.println( i + " font=" + fonts[i] );
|
|
}
|
|
Font myFont = fonts[2].deriveFont( Font.BOLD, 32 );
|
|
}
|
|
}
|