Java tutorial
import com.lowagie.text.pdf.BaseFont; public class TrueTypeCollectionsPDF { public static void main(String[] args) { try { String[] names = BaseFont.enumerateTTCNames("c:\\windows\\fonts\\msgothic.ttc"); for (int i = 0; i < names.length; i++) { System.out.println("font " + i + ": " + names[i]); } } catch (Exception e) { System.err.println(e.getMessage()); } } }