In Java I would do something like:
java.awt.GraphicsEnvironment ge =
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment();
Font[] fonts = ge.getAllFonts();
is there an Android equivalent?
In Java I would do something like:
java.awt.GraphicsEnvironment ge =
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment();
Font[] fonts = ge.getAllFonts();
is there an Android equivalent?
This answer isn't a programmatic solution, but the actual ttf fonts seem to be stored in the /system/fonts directory. Use adb shell ls /system/fonts to list them, or adb pull /system/fonts to transfer all of them to the connected computer (adb will create a folder named "fonts").
From Android 29, giving you an actual collection of android.graphics.fonts.Font, there is SystemFonts.getAvailableFonts()