VintaSoft Imaging .NET SDK 14.0: Documentation for .NET developer
Vintasoft.Imaging.Drawing.Gdi Namespace / GdiFont Class / FromFontFile Methods / FromFontFile(Stream,String,Single) Method
Syntax Requirements SeeAlso
In This Topic
    FromFontFile(Stream,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 fontFileStream
    The font file stream in TTF format.
    As System.IO.Stream, _
    ByVal fontFamilyName
    The font family name.
    As System.String, _
    ByVal size
    The font size.
    As Single _
    ) As GdiFont
    public static GdiFont FromFontFile(
    System.IO.Stream fontFileStream,
    System.String fontFamilyName,
    float size
    )
    public: static GdiFont* FromFontFile(
    System.IO.Stream* fontFileStream,
    System.String fontFamilyName,
    float size
    )
    public:
    static GdiFont^ FromFontFile(
    System.IO.Stream^ fontFileStream,
    System.String fontFamilyName,
    float size
    )

    Parameters

    fontFileStream
    The font file stream 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