|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--guk.editIM.FontLoader
This class loads a font dynamically, either from file or from a resource. Note that only the user of the font might be able to handle certain glyphs in cut and paste, as other applications may have no access to an appropriate font (as opposed to the situation when using globally installed fonts).
Field Summary | |
(package private) static int |
debug
debug level, as explained in DebugEditIM. |
(package private) static java.awt.Font |
font
private font object for the current INTERNAL font |
(package private) static java.util.Vector |
iFonts
internal font names |
Constructor Summary | |
FontLoader()
The constructor preloads internal fonts and inits iFonts. |
|
FontLoader(int udebug)
The constructor preloads internal fonts and inits iFonts. |
Method Summary | |
private void |
fontName(java.awt.Font thisFont)
Print the name of the font with verbosity level 0. |
java.awt.Font |
fontSet(java.lang.String nameF,
int sizeF,
java.awt.Font oldFont)
Find a font with the requested properties or derive it from a known font. |
java.util.Vector |
getInternalFonts()
Tell which fonts have been loaded dynamically. |
java.lang.String |
getInternalName(java.awt.Font afont)
Get the special "internal" name of a font. |
void |
loadFonts()
Initializes the iFonts font collection. |
Methods inherited from class java.lang.Object |
|
Field Detail |
static java.awt.Font font
static java.util.Vector iFonts
static int debug
Constructor Detail |
public FontLoader()
public FontLoader(int udebug)
debug
- Gives a debug
level from -1 to infinite (-1 or below mutes normal messages)Method Detail |
public java.awt.Font fontSet(java.lang.String nameF, int sizeF, java.awt.Font oldFont)
nameF
- Name of the font family to be found or null
for default.sizeF
- Size in points for the font. If 1 or smaller,
take size from oldFont or use default if no oldFont.oldFont
- An already known font from which the new
font can be derived, or null.public java.util.Vector getInternalFonts()
public java.lang.String getInternalName(java.awt.Font afont)
aFont
- An arbitrary font, but should be a dynamic one.private void fontName(java.awt.Font thisFont)
thisFont
- is "named" (size, family, name) to STDOUTpublic void loadFonts()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |