toggle menu
pspdfkit
PSPDFKit
switch theme
search in API
pspdfkit
/
com.pspdfkit.ui.fonts
/
Font
Font
open
class
Font
A single font that can be set on an
com.pspdfkit.annotations.Annotation
.
Members
Constructors
Font
Link copied to clipboard
@
WorkerThread
constructor
(
@
NonNull
name
:
String
,
@
NonNull
fontFiles
:
List
<
File
>
)
Creates a new
Font
.
@
WorkerThread
constructor
(
@
NonNull
name
:
String
,
@
NonNull
defaultTypeface
:
Typeface
)
Creates a new
Font
.
constructor
(
@
NonNull
name
:
String
)
Creates a new
Font
.
Properties
default
Typeface
Link copied to clipboard
@
Nullable
@get:
Nullable
val
defaultTypeface
:
Typeface
font
Files
Link copied to clipboard
@
NonNull
@get:
NonNull
val
fontFiles
:
List
<
File
>
name
Link copied to clipboard
@
NonNull
@get:
NonNull
val
name
:
String
Functions
equals
Link copied to clipboard
open
fun
equals
(
o
:
Any
)
:
Boolean
get
Default
Font
File
Link copied to clipboard
@
Nullable
open
fun
getDefaultFontFile
(
)
:
File
Returns the default font file to use.
hash
Code
Link copied to clipboard
open
fun
hashCode
(
)
:
Int