NativeScript
Open main menu
Docs
@nativescript/core
Open NativeScript GitHub
Close menu
Docs
@nativescript/core
Search Anything
Preparing search index...
The search index is not available
NativeScript
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
@nativescript/core
Font
Class Font
Modules
Font
constructor
font
Family
font
Scale
font
Size
font
Style
font
Weight
is
Bold
is
Italic
default
get
Android
Typeface
getUIFont
with
Font
Family
with
Font
Scale
with
Font
Size
with
Font
Style
with
Font
Weight
equals
Hierarchy
Font
Index
Constructors
constructor
Properties
font
Family
font
Scale
font
Size
font
Style
font
Weight
is
Bold
is
Italic
default
Methods
get
Android
Typeface
getUIFont
with
Font
Family
with
Font
Scale
with
Font
Size
with
Font
Style
with
Font
Weight
equals
Constructors
constructor
new
Font
(
family
:
string
, size
:
number
, style
:
FontStyle
, weight
:
FontWeight
)
:
Font
Parameters
family:
string
size:
number
style:
FontStyle
weight:
FontWeight
Returns
Font
Properties
font
Family
font
Family
:
string
font
Scale
font
Scale
:
number
font
Size
font
Size
:
number
font
Style
font
Style
:
FontStyle
font
Weight
font
Weight
:
FontWeight
is
Bold
is
Bold
:
boolean
is
Italic
is
Italic
:
boolean
Static
default
default
:
Font
Methods
get
Android
Typeface
get
Android
Typeface
(
)
:
any
Returns
any
getUIFont
getUIFont
(
defaultFont
:
any
)
:
any
Parameters
defaultFont:
any
Returns
any
with
Font
Family
with
Font
Family
(
family
:
string
)
:
Font
Parameters
family:
string
Returns
Font
with
Font
Scale
with
Font
Scale
(
scale
:
number
)
:
Font
Parameters
scale:
number
Returns
Font
with
Font
Size
with
Font
Size
(
size
:
number
)
:
Font
Parameters
size:
number
Returns
Font
with
Font
Style
with
Font
Style
(
style
:
string
)
:
Font
Parameters
style:
string
Returns
Font
with
Font
Weight
with
Font
Weight
(
weight
:
string
)
:
Font
Parameters
weight:
string
Returns
Font
Static
equals
equals
(
value1
:
Font
, value2
:
Font
)
:
boolean
Parameters
value1:
Font
value2:
Font
Returns
boolean
Legend
Module
Object literal
Variable
Function
Function with type parameter
Index signature
Type alias
Enumeration
Enumeration member
Property
Method
Interface
Interface with type parameter
Constructor
Property
Method
Index signature
Class
Class with type parameter
Constructor
Property
Method
Accessor
Index signature
Inherited constructor
Inherited property
Inherited method
Inherited accessor
Protected property
Protected method
Protected accessor
Private property
Private method
Private accessor
Static property
Static method