You can change the font size, but sneakily - code below shows difference as it has the positioning advantage too, as positioning gets - yes I will use the word - CORRUPTED - when scaling:
1import javafx.stage.Stage;
2import javafx.scene.text.Font;
3import javafx.scene.control.TextBox;
4import javafx.scene.control.Slider;
5import javafx.scene.Scene;
6import javafx.geometry.HPos;
7import javafx.scene.layout.VBox;
8
9var slider = Slider {
10 value: 1
11 min: 1
12 max: 4
13 majorTickUnit: 1
14 clickToPosition: true
15 showTickLabels: true
16 showTickMarks: true
17 };
18
19var font = Font { size : 13 name: "Courier" };
20var scaleWatch = bind slider.value on replace { font = Font { size: 13 * slider.value, name: "Courier" }; };
21
22Stage {
23 title: "TextBox Scaling Problem"
24 width: 700
25 height: 200
26 scene: Scene {
27 content: [
28 VBox {
29 layoutX: 10
30 layoutY: 10
31 spacing: 10
32 hpos: HPos.LEFT
33 content: bind [
34 TextBox {
35 font : Font { size : 13 name: "Courier" }
36 columns: 30
37 scaleX: bind slider.value
38 scaleY: bind slider.value
39 },
40 TextBox {
41 font : bind font
42 columns: 30
43 },
44 slider,
45 ]
46 }
47 ]
48 }
49 }
Sorry for late reply, you have probably sorted anyway,
P.S. Slider just about works, for some reason I have never ever managed to get the slider behaving as I think it should :-(
Cheers,
David