getFace

open fun getFace(name: String? = null): FontFace?

Gets the PangoFontFace of @family with the given name.

Return

the PangoFontFace, or null if no face with the given name exists.

Since

1.46

Parameters

name

the name of a face. If the name is null, the family's default face (fontconfig calls it "Regular") will be returned.