-
Enhancement
-
Resolution: Fixed
-
P3
-
8
When a Label is in a ScaleTransition the text jumps around and also seems to lose its antialising (or at least doesn't look overly smooth).
public class TextAnimateApp extends Application {
public static void main(String[] args) throws Exception {
launch(args);
}
public void start(Stage stage) throws Exception {
final StackPane rootPane = new StackPane();
Label label = new Label("This is a label");
label.setStyle("-fx-font-scale: 30");
ScaleTransition scale = new ScaleTransition(Duration.seconds(5), label);
scale.setCycleCount(Animation.INDEFINITE);
scale.setAutoReverse(true);
scale.setFromX(0);
scale.setFromY(0);
scale.setToX(5);
scale.setToY(5);
scale.play();
rootPane.getChildren().add(label);
Scene scene = new Scene(rootPane, 1200, 800);
stage.setScene(scene);
stage.show();
}
}
public class TextAnimateApp extends Application {
public static void main(String[] args) throws Exception {
launch(args);
}
public void start(Stage stage) throws Exception {
final StackPane rootPane = new StackPane();
Label label = new Label("This is a label");
label.setStyle("-fx-font-scale: 30");
ScaleTransition scale = new ScaleTransition(Duration.seconds(5), label);
scale.setCycleCount(Animation.INDEFINITE);
scale.setAutoReverse(true);
scale.setFromX(0);
scale.setFromY(0);
scale.setToX(5);
scale.setToY(5);
scale.play();
rootPane.getChildren().add(label);
Scene scene = new Scene(rootPane, 1200, 800);
stage.setScene(scene);
stage.show();
}
}
- duplicates
-
JDK-8122351 Transforms on Text
-
- Closed
-
-
JDK-8102278 Sub-pixel accurate rendering of Text for smooth animation
-
- Closed
-
- is blocked by
-
JDK-8098116 Support glyph rasterisation to sub-pixel precision
-
- Closed
-
- relates to
-
JDK-8090413 Need new hints to control how Text node is rendered
-
- Open
-
-
JDK-8090643 Add a variant of text smoothing to deal with rotated text at higher versus lower quality
-
- Open
-