Stay organized with collections
Save and categorize content based on your preferences.
SystemFonts
class SystemFonts
Provides the system font configurations.
Summary
Public methods |
static MutableSet<Font!> |
Returns all available font files in the system.
|
Public methods
getAvailableFonts
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 . |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# SystemFonts\n\nAdded in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nSystemFonts\n===========\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/graphics/fonts/SystemFonts \"View this page in Java\") \n\n```\nclass SystemFonts\n```\n\n|---|-----------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.graphics.fonts.SystemFonts](#) |\n\nProvides the system font configurations.\n\nSummary\n-------\n\n| Public methods ||\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------|\n| static [MutableSet](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-set/index.html)\\\u003c[Font](/reference/kotlin/android/graphics/fonts/Font)!\\\u003e | [getAvailableFonts](#getAvailableFonts())`()` Returns all available font files in the system. |\n\nPublic methods\n--------------\n\n### getAvailableFonts\n\nAdded in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic fun getAvailableFonts(): MutableSet\u003cFont!\u003e\n```\n\nReturns all available font files in the system.\n\n| Return ||\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------|\n| [MutableSet](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-set/index.html)\u003c[Font](/reference/kotlin/android/graphics/fonts/Font)!\u003e | a set of system fonts This value cannot be `null`. |"]]