Class Font
This class represents a text font, used mainly for the Electronic Signatures typing menu through SignatureOptions.
For setting a custom font you must first import it using a CSS file, then pass in the name of the font and System.Uri containing the import.
You can find the default fonts on DefaultFonts.
Your Fonts list can consist of a mix between default and custom fonts.
Inheritance
Namespace: PSPDFKit.UI
Assembly: PSPDFKit.dll
Syntax
public sealed class Font
Constructors
Font(String)
Creates a representation of a text font. These are used mainly for the Electronic Signatures typing menu through SignatureOptions.
You can find the default fonts on DefaultFonts.
Declaration
public Font(string fontName)
Parameters
Type | Name | Description |
---|---|---|
System.String | fontName | The name of the font. |
Font(String, Uri)
Creates a representation of a text font. These are used mainly for the Electronic Signatures typing menu through SignatureOptions. For setting a custom font you must first import it using a CSS file, then pass in the name of the font and System.Uri containing the import.
Declaration
public Font(string fontName, Uri cssUri)
Parameters
Type | Name | Description |
---|---|---|
System.String | fontName | The name of the font. |
System.Uri | cssUri | The System.Uri for the CSS file containing the font import. |
Properties
CssUri
The System.Uri for the CSS file containing the font import.
There CSS files must be added to your application's Assets folder.
Declaration
public Uri CssUri { get; }
Property Value
Type | Description |
---|---|
System.Uri |
FontName
The name of the font.
Declaration
public string FontName { get; }
Property Value
Type | Description |
---|---|
System.String |