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
Licensing Info
This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
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
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:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
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
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:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.