public static interface OutputProfiler.FontAction
set
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.Modifier and Type | Method and Description |
---|---|
PDFFont |
getFont(OutputProfiler profiler,
String name,
boolean embedded,
PDFFont font)
Returns the font to use instead of the specified font,
or
null to make no changes |
PDFFont getFont(OutputProfiler profiler, String name, boolean embedded, PDFFont font)
null
to make no changesprofiler
- 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.Copyright © 2001-2017 Big Faceless Organization