http://www.eteks.com

com.eteks.tools.fontcapture
Class PJAFontCapture

java.lang.Object
  |
  +--com.eteks.tools.fontcapture.PJAFontCapture

public class PJAFontCapture
extends java.lang.Object

Pure Java AWT Font capture utility. The main () method of this class is used to create font files used by PJA toolkit. The syntax is either :

java com.eteks.tools.fontcapture.PJAFontCapture

Or for a command line usage :

java com.eteks.tools.fontcapture.PJAFontCapture fontName [-p] [-b] [-i] [-bi] size1 size2 ... sizen filedest.pjaf

PJAF 1.0 .pjaf font files are not compatible with PJA 1.1, please use font capture utility to produce PJAF 1.1 font files.

For better results, don't forget to disable the font antialising tool on your system. To obtain smaller files, and faster strings drawing, this toolkit use fonts in a one layer bitmap.

This program can generate font files compatible with PJA and Java 1.0, but can't be run in a Java 1.0 environment.

Since:
PJA1.0
Version:
1.1
Author:
Emmanuel Puybaret
See Also:
PJAFontData

Constructor Summary
PJAFontCapture()
           
 
Method Summary
static void captureFont(java.lang.String fontName, int[] fontSizes, boolean plain, boolean bold, boolean italic, boolean bolditalic, java.lang.String file, com.eteks.tools.fontcapture.PJAFontCapture.CaptureFontListener listener)
           
static void main(java.lang.String[] args)
           
static void showCaptureFontDialog(java.lang.String exitButtonText)
          A simple dialog box to choose fonts to capture with a GUI.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PJAFontCapture

public PJAFontCapture()
Method Detail

main

public static void main(java.lang.String[] args)

showCaptureFontDialog

public static void showCaptureFontDialog(java.lang.String exitButtonText)
A simple dialog box to choose fonts to capture with a GUI.

captureFont

public static void captureFont(java.lang.String fontName,
                               int[] fontSizes,
                               boolean plain,
                               boolean bold,
                               boolean italic,
                               boolean bolditalic,
                               java.lang.String file,
                               com.eteks.tools.fontcapture.PJAFontCapture.CaptureFontListener listener)

© 1997-2001 eTeks - All rights reserved