FontManager

The fonts of a control manager: the families registered here, then those of Fonts, the fonts of all programs, which compositions and SVG documents use too. Families are resolved by weight and style, as in CSS.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
Link copied to clipboard

the families of the control manager, falling back on Fonts

Link copied to clipboard
var program: Program?
Link copied to clipboard

the files of the regular faces of the families registered here by their names, putting one registers it

Functions

Link copied to clipboard
fun font(cs: StyleSheet): FontImageMap
Link copied to clipboard
fun register(name: String, url: String, weight: Int = 400, italic: Boolean = false)

registers the font file url for the family name, with weight and as italic when italic is set

Link copied to clipboard
fun resolve(name: String): String?

the font file registered for the family name, or of the first registered family of a list of families

fun resolve(style: StyleSheet): String?

the font file of the font family, weight and style of style