public class WebFontDownloader
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
clearCache()
clear any pre-cached font files residing in persistent storage.
|
static void |
disableDownloads()
Prevent PDFNet from accessing the network to download missing fonts.
|
static void |
enableDownloads()
Allow PDFNet to access the network to download missing fonts when possible.
|
static boolean |
isAvailable()
Find out whether the web font downloader is available in version of PDFNet.
|
static void |
preCacheAsync()
download and cache a base collection of fonts in a background thread.
|
static void |
setCustomWebFontURL(java.lang.String url)
Set the root path into which the web font downloader will make requests.
|
public static boolean isAvailable() throws PDFNetException
PDFNetException
public static void enableDownloads() throws PDFNetException
PDFNetException
public static void disableDownloads() throws PDFNetException
PDFNetException
public static void preCacheAsync() throws PDFNetException
PDFNetException
public static void clearCache() throws PDFNetException
PDFNetException
public static void setCustomWebFontURL(java.lang.String url) throws PDFNetException
url
- -- The root path into which the web font downloader will make requests.PDFNetException