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

Using Helvetica font on Mac outputs "CoreText performance note"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8u20
    • 8
    • javafx
    • Macbook Air 2012, OS X, Java 8b117

      Running the attached program outputs the following performance note text in the console:

      2013-12-12 21:46:32.995 java[813:507] CoreText performance note: Client called CTFontCreateWithName() using name "Helvetica Bold" and got font with PostScript name "Helvetica-Bold". For best performance, only use PostScript names when calling this API.
      2013-12-12 21:46:32.995 java[813:507] CoreText performance note: Set a breakpoint on CTFontLogSuboptimalRequest to debug.

      Sample application:

      import javafx.application.Application;
      import javafx.scene.Scene;
      import javafx.scene.control.Label;
      import javafx.stage.Stage;

      public class FontError extends Application {
          @Override public void start(Stage stage) {
              System.out.println("javafx.runtime.version=" + System.getProperty("javafx.runtime.version"));
              Label label = new Label("Font Error");
              label.setStyle("-fx-font: 14px \"Helvetica\";");
              Scene scene = new Scene(label);
              stage.setScene(scene);
              stage.show();
          }

          public static void main(String[] args) {
              launch(args);
          }
      }

            fheidric Felipe Heidrich (Inactive)
            josmithjfx John Smith (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: