Free Support Forum -

Is there a way to list all fonts in available in the FontRepository?


I know findFont but that requires you have the font name … I want to get the list that is installed already.



The following Java code should help:

GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
String[] families = ge.getAvailableFontFamilyNames();
for (String family : families)

If your question is not related to any Aspose API, then we suggest you please search the web to find answers to your general (non-Aspose APIs related) questions.