mirror of
https://github.com/gumyr/build123d.git
synced 2025-12-06 10:41:20 -08:00
Replaced text Halign/Valign with Align
This commit is contained in:
parent
2f38545f76
commit
d36b120206
14 changed files with 65 additions and 115 deletions
|
|
@ -796,10 +796,10 @@ with BuildPart() as ex34:
|
|||
Box(length, width, thickness)
|
||||
topf = ex34.faces().sort_by(Axis.Z)[-1]
|
||||
with BuildSketch(topf) as ex34_sk:
|
||||
Text("Hello", fontsize=fontsz, halign=Halign.CENTER, valign=Valign.BOTTOM)
|
||||
Text("Hello", fontsize=fontsz, align=(Align.CENTER, Align.MIN))
|
||||
Extrude(amount=fontht)
|
||||
with BuildSketch(topf) as ex34_sk2:
|
||||
Text("World", fontsize=fontsz, halign=Halign.CENTER, valign=Valign.TOP)
|
||||
Text("World", fontsize=fontsz, align=(Align.CENTER, Align.MAX))
|
||||
Extrude(amount=-fontht, mode=Mode.SUBTRACT)
|
||||
# [Ex. 34]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue