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 . | |||||||||||
Font(String name, Typeface defaultTypeface)
Creates a new
Font . | |||||||||||
Font(String name)
Creates a new
Font . |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
File |
getDefaultFontFile()
Returns the default font file to use.
| ||||||||||
Typeface |
getDefaultTypeface()
Returns the default typeface to use, or
null if this font is not available on this device. | ||||||||||
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
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. |
Creates a new Font
. Used for fonts that aren't supported on this device.
name | The family name of this font. |
---|
Returns the default font file to use.
null
if no font file is available.
Returns the default typeface to use, or null
if this font is not available on this device.
This can occur if this annotation wasn't created locally.
Returns all the files associated with the given font family.