Methods
-
lineSpacing( spacing )
-
Parameters
Name Type Description spacingnumber The spacing between multiple lines in pixels.
Details
-
letterSpacing( spacing )
-
Parameters
Name Type Description spacingThe spacing between the letters, in pixels.
Details
-
fontAntialias( antiAlias )
-
Description
The antialias setting to apply to the text. When this parameter is not specified, the default antialiasing for the subsystem and target device are applied.
Parameters
Name Type Description antiAliasFontAntialiasType | string Details
-
fontFamily( fontFamilyName )
-
Description
The name of any universally available font or a custom font, specified as the public ID of a raw, authenticated font in your account. For details on custom fonts, see Using custom fonts for text overlays.
Parameters
Name Type Description fontFamilyNamestring Details
-
fontSize( fontSize )
-
Parameters
Name Type Description fontSizenumber The font size
Details
-
fontWeight( fontWeight )
-
Parameters
Name Type Description fontWeightFontWeightType | string The font weight
Details
-
fontStyle( fontStyle )
-
Parameters
Name Type Description fontStylestring The font style.
Details
-
fontHinting( fontHinting )
-
Parameters
Name Type Description fontHintingstring The outline hinting style to apply to the text. When this parameter is not specified, the default hint style for the font and target device are applied.
Details
-
textDecoration( textDecoration )
-
Parameters
Name Type Description textDecorationTextDecorationType | string The font decoration type.
Details
-
textAlignment( textAlignment )
-
Parameters
Name Type Description textAlignmentTextAlignmentType | string The text alignment
Details
-
stroke()
-
Description
Whether to include an outline stroke. Set the color and weight of the stroke
Details