Font.Google

Overloads

Google(String)Load google font using font name.
Google(String, [Optional] Boolean, [Optional] Boolean)Load google font using font name
Google(String, [Optional] Int32, [Optional] Boolean)Load google font using font name

Google(String)

Load google font using font name.

public static Font Google(string fontName)
Shared Function Google(fontName As String) As Font

Parameters

fontName
String

Name of the font.

Returns

Font

Returns Font object if the provided font is loaded else null.

Licensing Info

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Google(String, [Optional] Boolean, [Optional] Boolean)

Load google font using font name

public static GoogleFont Google(string fontName, [bool bold = False], [bool italic = False])
Shared Function Google(fontName As String, Optional bold As Boolean = False, Optional italic As Boolean = False) As GoogleFont

Parameters

fontName
String

Name of the font.

bold
Boolean

Specify if the font to be bold or not.

italic
Boolean

Specify if the font to be italic or not.

Returns

GoogleFont

Returns GoogleFont object if the provided font is loaded else null.

Licensing Info

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Google(String, [Optional] Int32, [Optional] Boolean)

Load google font using font name

public static GoogleFont Google(string fontName, [int weight = 400], [bool italic = False])
Shared Function Google(fontName As String, Optional weight As Integer = 400, Optional italic As Boolean = False) As GoogleFont

Parameters

fontName
String

Name of the font.

weight
Int32

Weight of the font.

italic
Boolean

Specify if the font to be italic or not.

Returns

GoogleFont

Returns GoogleFont object if the provided font is loaded else null.

Licensing Info

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

See Also

Font
ceTe.DynamicPDF

In this topic