Added in API level 29

SystemFonts


public final class SystemFonts
extends Object

java.lang.Object
   ↳ android.graphics.fonts.SystemFonts


Provides the system font configurations.

Summary

Public methods

static Set<Font> getAvailableFonts()

Returns all available font files in the system.

Inherited methods

Public methods

getAvailableFonts

Added in API level 29
public static Set<Font> getAvailableFonts ()

Returns all available font files in the system.

Returns
Set<Font> a set of system fonts This value cannot be null.