-
Bug
-
Resolution: Unresolved
-
P4
-
jfx13, 8u202
-
Reproduced on JDK 8u202, on Windows 10 and also on macOS High Sierra (version 10.13.6)
-
x86_64
-
windows_10
In the HTMLEditor, when positioning the caret in a text, the toolbar is updated to reflect the current position (font-size, bold button etc). The font-family is not updated if the font-family is composed of several words.
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 "Arial" font-family
- Select the word "world" and apply the "Agency FB" font-family.
- Click on the word "Hello" positioning the caret between the "e" and the "l"
- Verify "Arial" is selected. Then click on the word "world" positioning the caret between the "o" and the "r"
Actual behavior:
- The font-family stays on "Arial".
Expected behavior:
- The font-family should be on "Agency FB"
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 "Arial" font-family
- Select the word "world" and apply the "Agency FB" font-family.
- Click on the word "Hello" positioning the caret between the "e" and the "l"
- Verify "Arial" is selected. Then click on the word "world" positioning the caret between the "o" and the "r"
Actual behavior:
- The font-family stays on "Arial".
Expected behavior:
- The font-family should be on "Agency FB"
- relates to
-
JDK-8230492 font-family not set in HTMLEditor if font name has a number in it
- Resolved
- links to
-
Review openjdk/jfx/12