We use
String fonts[] = GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableFontFamilyNames();
to get a list of available fonts. I want a method which is able to return styles for a particular font. For Eg. Segoe UI is available in following styles : Black, Black Italic, Bold, Bold Italic, Light, Regular and so on.
Or is there any alternative to achieve same output ?