|
||
Fonts are used when working with character styles.
The Font class contains many of the common PowerPoint fonts as constants. If you wish to use a font that is not already specified, then you create it using one of the following factory methods. The method you use depends on the font family PowerPoint needs to use as a substitute font if a user does not have that particular font on their machine. Typically this should correspond to the family of font you are creating.
For example, if you use a font called "My
New Font", which you have on your machine and it is in the family of fixed
fonts, then you should create the PowerPoint font using the createFixed()
method. If a person now opens your presentation without having the
font "My New Font," PowerPoint will use a substitute font from the fixed font
family, e.g. "Courier New". This ensures that the presentation appears somewhat
close to the actual appearance you intended.
static Font createFixed(java.lang.String name) static Font createRoman(java.lang.String name) static Font createScript(java.lang.String name) static Font createSwiss(java.lang.String name) static Font createSymbol(java.lang.String name)
To determine the name of a font use:
java.lang.String getName()
To determine if a font is in the symbol family of fonts use:
boolean isSymbol()
|
||
| Page generated: 2008-01-18 02:53:28 GMT | TonicPoint Builder Developer's Guide -- Version 2.3 |