True Type font Collections : True Type Font « PDF RTF « Java






True Type font Collections

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());
    } 
  }
}

           
       








itext.zip( 1,748 k)

Related examples in the same category

1.True Type font From TTF File