{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

DeviceFontFamilyName

value public final class DeviceFontFamilyName


An Android system installed font family name as used by Typeface.create.

See /system/etc/fonts.xml and /product/etc/fonts_customization.xml on a device.

Throws
kotlin.IllegalArgumentException

if name is empty

See also
Typeface

Summary

Public constructors

Public methods

final @NonNull String

System fontFamilyName as passed to Typeface.create

Public constructors

DeviceFontFamilyName

public DeviceFontFamilyName(@NonNull String name)
Parameters
@NonNull String name

System fontFamilyName as passed to Typeface.create

Public methods

getName

public final @NonNull String getName()

System fontFamilyName as passed to Typeface.create