Added in API level 29

SystemFonts

class SystemFonts
kotlin.Any
   ↳ android.graphics.fonts.SystemFonts

Provides the system font configurations.

Summary

Public methods
static MutableSet<Font!>

Returns all available font files in the system.

Public methods

getAvailableFonts

Added in API level 29
static fun getAvailableFonts(): MutableSet<Font!>

Returns all available font files in the system.

Return
MutableSet<Font!> a set of system fonts This value cannot be null.