Replaces embedded fonts with equivalent "Standard" fonts, reducing the file size. In version 9.11 and earlier, only Courier and Courier-Bold were replaced. As of version 9.12, fonts are replaced with the one of the 14 "Standard" fonts listed below:
For example, ArialMT font will be replaced with Helvetica "Standard". Note that the "Standard" fonts do not contain the full Unicode character set but only the 229 characters defined by the WinAnsiEncoding table.
function TDebenuPDFLibrary1511.ReplaceFonts(Options: Integer): Integer;
Function DebenuPDFLibrary1511.PDFLibrary::ReplaceFonts(Options As Long) As Long
int DPLReplaceFonts(int InstanceID, int Options)
0 = Default. Standard and much preferrered level of font replacement
1 = Special option to replace fonts and also remove the subsetted fonts and also the WinAnsiEncoding entry. This will only work if there is no other Encoding entry and is for very specific documents only.
10 = Do not replace the FontDescriptor but delete the FontFile2 embedded font data. This will turn an embedded font into a non embedded font for fonts that match closely to a Standard font such as ArialMT. Most viewers will use Arial to render ArialMT anyway if it is not embedded.
|0||Nothing was changed|
|1||A replacement of some type was made.|