|
http://www.eteks.com | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.eteks.tools.fontcapture.PJAFontCapture
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
fontName
is the font you want to capture (Helvetica, Times,...)-p
, -b
, -i
and -bi
are styles that you want to apply
to the font (plain, bold, italic, bold italic). You may choose one or more of these options.
If no style option is present, default is set to plain. When PJA toolkit is used, missing styles are
matched to an other existing one. That means if you captured an italic style font without bold italic style,
italic style will be used instead of bold italic if required.size1 ... sizen
are the sizes that you want to apply (7 10 24 or whatever). Remember that
big fonts take more memory. When this toolkit is used, all missing sizes are matched to the closest one.
That means if you captured 8 10 12 16 font sizes, 8 size will be used for any query to a font smaller than 8,
12 font will be used instead of a 14 font, and 16 size will be used for any query to a font bigger than 16.filedest.pjaf
is the file name where the font capture will be saved. Extension must be
.pjaf
(Pure Java AWT Font) and directory the user directory, to ensure automatic detection
of font files by PJAToolkit
class. When used with PJAToolkit
, the font names
are taken from the logical font name recorded in the file and not from the file name.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.
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 |
public PJAFontCapture()
Method Detail |
public static void main(java.lang.String[] args)
public static void showCaptureFontDialog(java.lang.String exitButtonText)
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)
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |