matchFamily

fun matchFamily(familyName: String?): FontStyleSet

The caller must call close on the returned object. Never returns null; will return an empty set if the name is not found.

Passing null as the parameter will return the default system family. Note that most systems don't have a default system family, so passing null will often result in the empty set.

It is possible that this will return a style set not accessible from makeStyleSet due to hidden or auto-activated fonts.