VintaSoft Barcode .NET SDK 15.1: Documentation for .NET developer
Vintasoft.Barcode.TextRendering Namespace / TextRenderingFactory Class / CreateTextFont Methods / CreateTextFont(String,Single,Boolean,Boolean) Method
Syntax Requirements SeeAlso
In This Topic
    CreateTextFont(String,Single,Boolean,Boolean) Method (TextRenderingFactory)
    In This Topic
    Creates the font by name.
    Syntax
    'Declaration
    
    Public Overloads MustOverride Function CreateTextFont( _
    ByVal fontName
    The name of the font.
    As String, _
    ByVal size
    The size of the font, measured in the points (1/72 inch).
    As Single, _
    ByVal isBold
    A value indicating whether font is bold.
    As Boolean, _
    ByVal isItalic
    A value indicating whetherr font is italic.
    As Boolean _
    ) As TextFont
    public abstract TextFont CreateTextFont(
    string fontName,
    float size,
    bool isBold,
    bool isItalic
    )
    public: abstract TextFont* CreateTextFont(
    string* fontName,
    float size,
    bool isBold,
    bool isItalic
    )
    public:
    abstract TextFont^ CreateTextFont(
    string^ fontName,
    float size,
    bool isBold,
    bool isItalic
    )

    Parameters

    fontName
    The name of the font.
    size
    The size of the font, measured in the points (1/72 inch).
    isBold
    A value indicating whether font is bold.
    isItalic
    A value indicating whetherr font is italic.

    Return Value

    The text font.
    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