import javafx.application.Application;
import javafx.geometry.Insets;
import javafx.scene.Scene;
import javafx.scene.layout.VBox;
import javafx.scene.paint.Color;
import javafx.scene.shape.StrokeType;
import javafx.scene.text.Font;
import javafx.scene.text.Text;
import javafx.stage.Stage;

public class Test extends Application {

	private static final String DEMO_TEXT = "A B C D E F G H I J K L M N O P Q R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z 0 1 2 3 4 5 6 7 8 9";
	private static final Font SYSTEM_FONT = Font.font("System", 12);

	@Override
	public void start(Stage stage) {

		final VBox root = new VBox(20);
		root.setPadding(new Insets(50));

		for (double strokeWidth = 1; strokeWidth <= 5; strokeWidth += 0.5) {
			final var text = new Text(DEMO_TEXT);
			text.setFont(SYSTEM_FONT);
			text.setFill(Color.BLACK);
			text.setStroke(Color.MAGENTA);
			text.setStrokeWidth(strokeWidth);
			text.setStrokeType(StrokeType.OUTSIDE);

			root.getChildren().add(text);
		}

		final Scene scene = new Scene(root);
		stage.setScene(scene);
		stage.show();
	}

	public static void main(String[] args) {
		launch(args);
	}
}