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 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
System.Object
Font
Namespace: PSPDFKit.UI
Assembly: PSPDFKit.dll
Syntax
public sealed class Font : object

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 containing the import.

Declaration
public Font(string fontName, Uri cssUri)
Parameters
Type Name Description
System.String fontName

The name of the font.

Uri cssUri

The for the CSS file containing the font import.

Properties

CssUri

The 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
Uri

FontName

The name of the font.

Declaration
public string FontName { get; }
Property Value
Type Description
System.String