Marblecore Imaging Library Documentation

Documentation Introduction
Documentation / Marblecore Imaging / Methods / SetFont

SetFont method

Sets all font properties within one function call.

Syntax

Boolean SetFont(strFontFace As String, nFontSize As Number, nFontColor As Number, nFontOpacity As Number, bFontBold As State, bFontItalic As State, bFontUnderline As State, bFontStrikeout As State, bFontAntiAliasing As State, nFontAlignment As Alignment, nFontRotation As Number)

Return value

Returns true if the function succeeded.

Parameters

ParameterTypeRequiredDescription
strFontFaceStringNoOptional parameter which specifies the font face.
nFontSizeNumberNoOptional parameter which specifies the font size.
nFontColorNumberNoOptional parameter which specifies the font color.
nFontOpacityNumberNoOptional parameter which specifies the font opacity.
bFontBoldState (Enumeration)NoOptional parameter which enables or disables the bold font style.
bFontItalicState (Enumeration)NoOptional parameter which enables or disables the italic font style.
bFontUnderlineState (Enumeration)NoOptional parameter which enables or disables the underline font style.
bFontStrikeoutState (Enumeration)NoOptional parameter which enables or disables the strikeout font style.
bFontAntiAliasingState (Enumeration)NoOptional parameter which enables or disables the font anti-aliasing.
nFontAlignmentAlignment (Enumeration)NoOptional parameter which specifies the alignment of the text.
nFontRotationNumberNoOptional parameter which specifies the rotation angle of the text in degrees.

Category

Fonts

See also

LoadFont | ReleaseFont | ResetFont