Font

The font class is used for abstracting the platforms implementation of fonts.

Supported Platforms

Component iOS win32 web django cocoa gtk android
Font yes no no no yes yes no

Reference

class toga.interface.font.Font(family, size)

A Font is a font family (e.g. “Helvetica”) and a size (e.g. 15) that can be applied to widgets.

create()

Create font

family

Font family, e.g. Helvetica

Return type:str
size

Font size

Return type:int