import javafx.application.Application;
import javafx.geometry.VPos;
import javafx.scene.Scene;
import javafx.scene.layout.HBox;
import javafx.scene.text.FontSmoothingType;
import javafx.scene.text.Text;
import javafx.scene.text.TextAlignment;
import javafx.stage.Stage;

public class TextSpacing extends Application {

    @Override
    public void start(Stage stage) {

        HBox root = new HBox(10);

        Text caption;
        caption = new Text("Node:\n\nPoint:\nDistance:\nFace:\ntexture Coord:");
//        caption.setFontSmoothingType(FontSmoothingType.LCD);
        caption.setTextOrigin(VPos.TOP);
        caption.setTextAlignment(TextAlignment.RIGHT);

        Text data;
        data = new Text();
//        data.setFontSmoothingType(FontSmoothingType.LCD);
        data.setTextOrigin(VPos.TOP);
        data.setTextAlignment(TextAlignment.LEFT);
        data.setText("Scene\n\n"
                + "165.6; 53.6; -0.0\n"
                + "135.67\n"
                + "-1\n"
                + "null");

        root.getChildren().addAll(caption, data);
        Scene s = new Scene(root, 270, 120);

        stage.setScene(s);
        stage.show();
    }

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