Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8114390

System font family names aren't enumerated by Font.getFontNames()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • None
    • fx2.0
    • javafx

      The System font family names aren't enumerated by Font.getFontNames()

      ======= case code =======
      import javafx.application.Application;
      import javafx.stage.Stage;
      import javafx.scene.text.Font;

      import java.util.List;

      /**
       *
       * @author Peter Song
       * @date Aug 30, 2011 3:16:26 PM
       */
      public class FontNamesTest extends Application{

          /**
           * @param args the command line arguments
           */
          public static void main(String[] args) {
              Application.launch(args);
          }

          @Override
          public void start(Stage stage) throws Exception {
              List<String> list = Font.getFontNames();
              int i = 1;
              for(String s: list){
                  System.out.println(i++ + " : " + s);
              }
          }
      }
      --------------------------

            prr Philip Race
            prr Philip Race
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: