| java.lang.Object | |
| ↳ | com.pspdfkit.ui.fonts.Font |
A single font that can be set on an Annotation.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
Font(String name, List<File> fontFiles)
Creates a new
Font. | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| File |
getDefaultFontFile()
Returns the default font file to use.
| ||||||||||
| Typeface |
getDefaultTypeface()
Returns the default typeface to use.
| ||||||||||
| List<File> |
getFontFiles()
Returns all the files associated with the given font family.
| ||||||||||
| String |
getName()
Returns the name of the font family.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Creates a new Font.
Note: This should not be called from the main thread since this will preload the default typeface causing disk I/O.
| name | The family name of this font. |
|---|---|
| fontFiles | All files associated with the given font family. |
Returns the default font file to use.
Returns the default typeface to use.
Returns all the files associated with the given font family.