Font

constructor()

Returns Font initialized with default values


constructor(typeface: Typeface?)

Returns Font with Typeface and default size

Parameters

typeface

typeface and style used to draw and measure text. Pass null for default


constructor(typeface: Typeface?, size: Float)

Parameters

typeface

typeface and style used to draw and measure text. Pass null for default

size

typographic size of the text


constructor(typeface: Typeface?, size: Float, scaleX: Float, skewX: Float)

Constructs Font with default values with Typeface and size in points, horizontal scale, and horizontal skew. Horizontal scale emulates condensed and expanded fonts. Horizontal skew emulates oblique fonts.

Parameters

typeface

typeface and style used to draw and measure text. Pass null for default

size

typographic size of the text

scaleX

text horizonral scale

skewX

additional shear on x-axis relative to y-axis