VintaSoft Imaging .NET SDK 15.1: Documentation for .NET developer
Vintasoft.Imaging.Fonts Namespace / FontProgramsControllerBase Class / GetTrueTypeFontProgram(FontInfo) Method
Syntax Remarks Requirements SeeAlso
In This Topic
GetTrueTypeFontProgram(FontInfo) Method (FontProgramsControllerBase)
In This Topic
Returns a TrueType font program using specified font info name.
Syntax
'Declaration

Public Overridable Function GetTrueTypeFontProgram( _
ByVal fontInfo
The font info.
As FontInfo _
) As FontProgramSearchResult
public virtual FontProgramSearchResult GetTrueTypeFontProgram(
FontInfo fontInfo
)

Parameters

fontInfo
The font info.

Return Value

The FontProgramSearchResult that contains the font program in TrueType format if font is found successfully; otherwise, null.
Remarks

Method is executed when external TrueType font is needed for drawing text on document page or text extraction from document page but font is not embedded in document.
Application code must analyze font name and provide font that will be used instead of specified font.

Text drawing on document page or text extraction from document page will be interrupted with error if this method returns null.

Requirements

Target Platforms: .NET 10; .NET 9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

See Also