Font.IsAccessible

Font.IsAccessible property

Gets indicating whether the font is present (installed) in the system.

public bool IsAccessible { get; }

Remarks

Some operations are not available with fonts that could not be found in the system.

Examples

The example demonstrates how to search text on first page and get the value that indicates whether the font is installed in the system.

// Open document
Document doc = new Document(@"D:\Tests\input.pdf");

// Create TextFragmentAbsorber object to find all "hello world" text occurrences
TextFragmentAbsorber absorber = new TextFragmentAbsorber("hello world");

// Accept the absorber for first page
doc.Pages[1].Accept(absorber);

// View font's IsSubset value of first text occurrence
if(absorber.TextFragments[1].TextState.Font.IsAccessible)
   Console.Out.WriteLine("the font is installed in the system");

See Also