From 3d17e5a9da8c272cdb80a30bb62c568f0b508f70 Mon Sep 17 00:00:00 2001 From: Joel Ebel Date: Sat, 5 May 2018 22:06:54 -0400 Subject: [PATCH] Add horizontal alignment argument to LText module --- files/U_Box_V104_Test_Cleaned.scad | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/files/U_Box_V104_Test_Cleaned.scad b/files/U_Box_V104_Test_Cleaned.scad index 249e474..57430f6 100644 --- a/files/U_Box_V104_Test_Cleaned.scad +++ b/files/U_Box_V104_Test_Cleaned.scad @@ -375,12 +375,13 @@ module SquareHole(OnOff, Sx, Sy, Sl, Sw, Filet) { Font: Font to use for text Size: Approximate Height of text in mm. Content: The text + HAlign: Text alignment. Defaults to "center" */ -module LText(OnOff,Tx,Ty,Font,Size,Content) { +module LText(OnOff,Tx,Ty,Font,Size,Content, HAlign="center") { if (OnOff == 1) { translate([Tx, Ty, Thick + .5]) { linear_extrude(height=0.5) { - text(Content, size=Size, font=Font); + text(Content, size=Size, font=Font, halign=HAlign); } } }