RemoveFallbackFont

Description

Removes a fallback font.

Applies to

PDFTableOfContents object

PDFTableOfContentsItem object

PDFText object

PDFTextBlock object

PDFMultiLineText object

Syntax

RemoveFallbackFont (long index)
RemoveFallbackFont (string fontName)

Argument

Description

index

The index of the font.

fontName

The name of the font.


Return value

Long. Returns 1 if the function succeeds, and -1 if the function fails. For more errors, see the Error Codes.

Examples

This example removes a fallback font from the table of contents according to the font index.

long ll_remove
//Remove the font whose index=1
ll_remove = lpdf_toc.removefallbackfont (1)

This example removes a fallback font from the table of contents according to the font name.

//Remove the font whose name is Microsoft YaHei
ll_remove = lpdf_toc.removefallbackfont ("Microsoft YaHei")

See also

AddFallbackFont

GetFallbackFontCount

GetFallbackFont

RemoveFallbackFont

RemoveAllFallbackFont

GetFont

SetFont