Package org.faceless.pdf2
Interface OutputProfiler.FontAction
-
- All Known Implementing Classes:
OutputProfiler.AutoEmbeddingFontAction
- Enclosing class:
- OutputProfiler
public static interface OutputProfiler.FontAction
An action that can beset
on an OutputProfiler to replace one font with another in the PDF. Typically it's used to replace unembedded fonts with embedded ones, but other possibilities exist. The position of each glyph will not be altered on the page, so the metrics for the original and replacement font should be substantially the same.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PDFFont
getFont(OutputProfiler profiler, String name, boolean embedded, PDFFont font)
Returns the font to use instead of the specified font, ornull
to make no changes
-
-
-
Method Detail
-
getFont
PDFFont getFont(OutputProfiler profiler, String name, boolean embedded, PDFFont font)
Returns the font to use instead of the specified font, ornull
to make no changes- Parameters:
profiler
- the OutputProfiler this action is being run onname
- the font nameembedded
- whether the font is embedded in the PDF - typically embedded fonts should be left unchanged.font
- the font that is being replaced. Note this structure is unlikely to support the full PDFFont API, and the object cannot be reused elsewhere.
-
-