public interface

FontManager

com.pspdfkit.ui.fonts.FontManager

Class Overview

Gives you access to all the fonts available on the system.

Summary

Public Methods
abstract List<Font> getAvailableFonts()
This lists all the fonts available to use with PSPDFKit.
abstract Font getFontByName(String name)
Gets the font specified by the given name or null.

Public Methods

public abstract List<Font> getAvailableFonts ()

This lists all the fonts available to use with PSPDFKit.

Returns
  • All available fonts or an empty list if the user hasn't granted us storage access permission.

public abstract Font getFontByName (String name)

Gets the font specified by the given name or null.

Parameters
name The name of the font to get.
Returns
  • The font of the given name or null if no font for the name exists.