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

Using Helvetica font on Mac outputs "CoreText performance note"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8
    • Fix Version/s: 8u20
    • Component/s: javafx
    • Labels:
    • Environment:

      Macbook Air 2012, OS X, Java 8b117

      Description

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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported: