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

font-family not set in HTMLEditor if font name has a number in it

    Details

    • Subcomponent:
      web
    • CPU:
      x86_64
    • OS:
      generic

      Description

      In the HTMLEditor, when positioning the caret in a text and trying to set a font-family that has a number in it is not working.

      Steps to reproduce :
      - Run this sample :
      "

      import javafx.application.Application;
      import static javafx.application.Application.launch;
      import javafx.scene.Scene;
      import javafx.scene.web.HTMLEditor;
      import javafx.stage.Stage;

      public class TestApp extends Application {

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

          @Override
          public void start(Stage primaryStage) throws Exception {
              HTMLEditor editor = new HTMLEditor();
              
              Scene scene = new Scene(editor);
              primaryStage.setScene(scene);
              primaryStage.show();
          }
      }
      "

      - Write "Hello world"
      - Select the word "Hello" and apply the "Bauhaus 93" font-family

      Actual behavior:
      - The font-family is changed to "Bauhaus 93" in the comboBox but not applied to the text.

      Expected behavior:

      - The font-family "Bauhaus 93" should be applied on the text

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ajoseph Arun Joseph
                Reporter:
                shadzic Samir Hadzic
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: