[]
Finds the most suitable native font for rendering text associated with this PDF font.
The PDF specification does not define a precise algorithm for selecting a font when no embedded font data is available. This method uses a combination of heuristics and practical strategies to choose an appropriate native font.
public Font FindNativeFont(GcPdfDocument doc, bool allowStandardPdfFonts = true)
Public Function FindNativeFont(doc As GcPdfDocument, Optional allowStandardPdfFonts As Boolean = True) As Font
Type | Name | Description |
---|---|---|
GcPdfDocument | doc | The GcPdfDocument that owns this font. |
bool | allowStandardPdfFonts | If true, also searches the 14 standard PDF fonts if a suitable font could not be found among the fonts installed on the system. |
Type | Description |
---|---|
Font | The native font that matches the current PDF font, or null if a match could not be found. |