VintaSoft Imaging .NET SDK 14.0: Documentation for .NET developer
Vintasoft.Imaging.Drawing.Gdi Namespace / GdiFont Class / FromFontFile Methods / FromFontFile(String,String,Single) Method
Syntax Requirements SeeAlso
In This Topic
    FromFontFile(String,String,Single) Method (GdiFont)
    In This Topic
    Creates the font using the specified font file stream in TTF format.
    Syntax
    'Declaration
    
    Public Overloads Shared Function FromFontFile( _
    ByVal fontFilename
    The name of font file in TTF format.
    As System.String, _
    ByVal fontFamilyName
    The font family name.
    As System.String, _
    ByVal size
    The font size.
    As Single _
    ) As GdiFont
    public static GdiFont FromFontFile(
    System.String fontFilename,
    System.String fontFamilyName,
    float size
    )
    public: static GdiFont* FromFontFile(
    System.String fontFilename,
    System.String fontFamilyName,
    float size
    )
    public:
    static GdiFont^ FromFontFile(
    System.String fontFilename,
    System.String fontFamilyName,
    float size
    )

    Parameters

    fontFilename
    The name of font file in TTF format.
    fontFamilyName
    The font family name.
    size
    The font size.

    Return Value

    A new font based on TTF font file.
    Requirements

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

    See Also