DefaultFallbackFontProvider.GetFallbackFontFile Method

Provides fallback font bytes for a non-embedded PDF font.

Namespace:  BitMiracle.Docotic.Pdf
Assembly:  BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)

Syntax

C#
public Stream GetFallbackFontFile(
	PdfFontInfo fontInfo
)
VB
Public Function GetFallbackFontFile ( 
	fontInfo As PdfFontInfo
) As Stream

Parameters

fontInfo
Type: BitMiracle.Docotic.Pdf.PdfFontInfo
Describes the PDF font for which the library needs an eligible fallback font.

Return Value

Type: Stream
The bytes of an eligible fallback font.

Implements

IFallbackFontProvider.GetFallbackFontFile(PdfFontInfo)

Remarks

This method returns the following fallback fonts:

  • Helvetica and Times for Type1 PDF fonts
  • Liberation and PT Sans for TrueType PDF fonts
  • Droid Sans Fallback for Type0 PDF fonts

See Also