public class LocalFonts extends Object
Modifier and Type | Method and Description |
---|---|
static LocalFontInfo |
findLocalFontInfo(String name,
boolean bold,
boolean italic)
Find best local font by properties (name, bold, italic)
- Will find font based on name & complete style options, name & partial options,
or name alone
|
static List<LocalFontInfo> |
getLocalFonts()
Get list of local font information objects.
|
static void |
setUserFontDirectories(List<String> userFontDirs)
Set user font directories.
|
public static void setUserFontDirectories(List<String> userFontDirs)
userFontDirs
- - List of font directory path stringspublic static List<LocalFontInfo> getLocalFonts() throws PDFException
PDFException
- - if font parsing code is not present or found (qsfntly.jar) in classpathpublic static LocalFontInfo findLocalFontInfo(String name, boolean bold, boolean italic) throws PDFException
name
- - font namebold
- - flag - set true to look for bold version of fontitalic
- - flag - set true to look for italic version of fontPDFException
- - if font parsing code is not present or found (qsfntly.jar) in classpath