-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
When text is set to be underlined and it contains letters that extend bellow the baseline (like a 'y'), it is done so in a weird way. Instead of being underlined with one line, it seems to be dotted.
Expected behavior would be to see one continues line.
Code to reproduce:
package one.jpro.hellojpro;
import javafx.application.Application;
import javafx.geometry.Pos;
import javafx.scene.Scene;
import javafx.scene.control.Label;
import javafx.scene.text.Font;
import javafx.stage.Stage;
/**
* Hello JPro application.
*
* @author Florian Kirmaier
*/
public class HelloJPro extends Application {
@Override
public void start(Stage stage) {
Label label = new Label("yyyyyy");
label.setFont(new Font(50));
label.setUnderline(true);
label.setAlignment(Pos.CENTER);
stage.setScene(new Scene(label));
stage.show();
}
/**
* Application entry point.
*
* @param args the command line arguments
*/
public static void main(String[] args) {
launch(args);
}
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels

