|
intarsys PDF library API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.intarsys.pdf.font.outlet.StandardFontFactory
public class StandardFontFactory
The standard factory managing and creating fonts.
This one relies on the building blocks for fonts defined in "de.intarsys.afm" and "de.intarsys.truetype".
The factory tries first to resolve the request within the cache of already loaded fonts. If not found, first Type1 (AFM), then TrueType fonts are looked up.
Remember to properly set up the according registries if you want to access non standard fonts.
| Method Summary | |
|---|---|
PDFont |
getBoldFlavor(PDFont font)
A font based on font, but with "bold" style. |
PDFont |
getFont(IFontQuery query)
A font satisfying the conditions defined in query. |
PDFont |
getItalicFlavor(PDFont font)
A font based on font, but with "italic" style. |
PDFont |
getRegularFlavor(PDFont font)
A font based on font, but with "regular" style. |
void |
setEmbedNew(boolean embedNew)
Flag if the factory should create fonts that are embedded in the document. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public PDFont getBoldFlavor(PDFont font)
IFontFactoryfont, but with "bold" style.
The font returned may be either a new one or a font already in use in a
PDDocument. Thois decision is up to the factory.Be careful when
changing the font returned!
getBoldFlavor in interface IFontFactoryfont - The base font to be "bolded".
font, but with "bold" style.public void setEmbedNew(boolean embedNew)
IFontFactory
setEmbedNew in interface IFontFactoryembedNew - true if new fonts should be embedded.public PDFont getFont(IFontQuery query)
IFontFactoryquery.
The font returned may be either a new one or a font already in use in a
PDDocument. Thois decision is up to the factory.Be careful when
changing the font returned!
getFont in interface IFontFactoryquery - A query defining the PDFont to be looked up.
query.public PDFont getItalicFlavor(PDFont font)
IFontFactoryfont, but with "italic" style.
The font returned may be either a new one or a font already in use in a
PDDocument. Thois decision is up to the factory.Be careful when
changing the font returned!
getItalicFlavor in interface IFontFactoryfont - The base font to be "italicized".
font, but with "italic" style.public PDFont getRegularFlavor(PDFont font)
IFontFactoryfont, but with "regular" style.
The font returned may be either a new one or a font already in use in a
PDDocument. Thois decision is up to the factory.Be careful when
changing the font returned!
getRegularFlavor in interface IFontFactoryfont - The base font to be "regularized".
font, but with "regular" style.
|
intarsys PDF library API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||