Free Support Forum - aspose.com

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


#1

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


#2

@jezerinac,

The following Java code should help:

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

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.