Fix labels for JavaFX
This commit is contained in:
parent
c1627b4504
commit
a87692ae1f
@ -14,6 +14,7 @@ class FXDemoApp : App(FXDemoGrid::class) {
|
|||||||
stage.height = 600.0
|
stage.height = 600.0
|
||||||
|
|
||||||
view.showcase()
|
view.showcase()
|
||||||
|
view.showcaseCSG()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -65,7 +65,8 @@ class FX3DPlugin : AbstractPlugin() {
|
|||||||
}
|
}
|
||||||
is SolidLabel -> Text(obj.text).apply {
|
is SolidLabel -> Text(obj.text).apply {
|
||||||
font = Font.font(obj.fontFamily, obj.fontSize)
|
font = Font.font(obj.fontFamily, obj.fontSize)
|
||||||
|
transforms.add(Rotate(180.0, Rotate.Y_AXIS))
|
||||||
|
transforms.add(Rotate(180.0, Rotate.Z_AXIS))
|
||||||
x = -layoutBounds.width / 2
|
x = -layoutBounds.width / 2
|
||||||
y = layoutBounds.height / 2
|
y = layoutBounds.height / 2
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user