public interface IFontFactory
PDFont instances.
The factory can create "relative" requests ("getXYZFlavor) as well as "absolute" request defining the complete font attributes.
| Modifier and Type | Method and Description |
|---|---|
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 |
registerFont(PDFont font)
Register a new font available for public use.
|
PDFont getBoldFlavor(PDFont font) throws FontFactoryException
font, but with "bold" style.
The font returned may be either a new one or a font already in use in a
PDDocument. This decision is up to the factory.Be careful when
changing the font returned!
font - The base font to be "bolded".font, but with "bold" style.FontFactoryExceptionPDFont getFont(IFontQuery query) throws FontFactoryException
query.
The font returned may be either a new one or a font already in use in a
PDDocument. This decision is up to the factory. Be careful when
changing the font returned!
query - A query defining the PDFont to be looked up.query.FontFactoryExceptionPDFont getItalicFlavor(PDFont font) throws FontFactoryException
font, but with "italic" style.
The font returned may be either a new one or a font already in use in a
PDDocument. This decision is up to the factory.Be careful when
changing the font returned!
font - The base font to be "italicized".font, but with "italic" style.FontFactoryExceptionPDFont getRegularFlavor(PDFont font) throws FontFactoryException
font, but with "regular" style.
The font returned may be either a new one or a font already in use in a
PDDocument. This decision is up to the factory. Be careful when
changing the font returned!
font - The base font to be "regularized".font, but with "regular" style.FontFactoryExceptionvoid registerFont(PDFont font)
font - The new font available for clients .Copyright © 2013 intarsys consulting GmbH. All Rights Reserved.