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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: fx2.0
    • Fix Version/s: None
    • Component/s: javafx

      Description

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

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              Imported: