intarsys PDF library API

de.intarsys.pdf.font.outlet
Interface IFontFactory

All Known Implementing Classes:
DocumentFontFactory, StandardFontFactory

public interface IFontFactory

A factory for PDFont instances.

The factory can create "relative" requests ("getXYZFlavor) as well as "absolute" request defining the complete font attributes.


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.
 

Method Detail

getItalicFlavor

PDFont getItalicFlavor(PDFont font)
A font based on font, 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!

Parameters:
font - The base font to be "italicized".
Returns:
A font based on font, but with "italic" style.

getRegularFlavor

PDFont getRegularFlavor(PDFont font)
A font based on font, 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!

Parameters:
font - The base font to be "regularized".
Returns:
A font based on font, but with "regular" style.

getBoldFlavor

PDFont getBoldFlavor(PDFont font)
A font based on font, 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!

Parameters:
font - The base font to be "bolded".
Returns:
A font based on font, but with "bold" style.

getFont

PDFont getFont(IFontQuery query)
A font satisfying the conditions defined in query.

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!

Parameters:
query - A query defining the PDFont to be looked up.
Returns:
A font satisfying the conditions defined in query.

setEmbedNew

void setEmbedNew(boolean embedNew)
Flag if the factory should create fonts that are embedded in the document.

Parameters:
embedNew - true if new fonts should be embedded.

intarsys PDF library API

Copyright © 2006 intarsys consulting GmbH. All Rights Reserved.