Skip to content

Commit

Permalink
fix default font
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianVmariano committed Sep 22, 2024
1 parent 44361dd commit f03d430
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions shapes2d.scad
Original file line number Diff line number Diff line change
Expand Up @@ -2021,7 +2021,7 @@ function reuleaux_polygon(n=3, r, d, anchor=CENTER, spin=0) =
// Arguments:
// text = Text to create.
// size = The font will be created at this size divided by 0.72. Default: 10
// font = Font to use. Default: "Liberation Sans"
// font = Font to use. Default: "Liberation Sans" (standard OpenSCAD default)
// ---
// halign = If given, specifies the horizontal alignment of the text. `"left"`, `"center"`, or `"right"`. Overrides `anchor=`.
// valign = If given, specifies the vertical alignment of the text. `"top"`, `"center"`, `"baseline"` or `"bottom"`. Overrides `anchor=`.
Expand All @@ -2036,7 +2036,7 @@ function reuleaux_polygon(n=3, r, d, anchor=CENTER, spin=0) =
// str("baseline",VECTOR) = Anchors at the baseline of the text, modified by the X and Z components of the appended vector.
// Examples(2D):
// text("Foobar", size=10);
// text("Foobar", size=12, font="Helvetica");
// text("Foobar", size=12, font="Courier");
// text("Foobar", anchor=CENTER);
// text("Foobar", anchor=str("baseline",CENTER));
// Example: Using line_copies() distributor
Expand All @@ -2047,7 +2047,7 @@ function reuleaux_polygon(n=3, r, d, anchor=CENTER, spin=0) =
// txt = "This is the string";
// arc_copies(r=50, n=len(txt), sa=0, ea=180)
// text(select(txt,-1-$idx), size=10, anchor=str("baseline",CENTER), spin=-90);
module text(text, size=10, font="Helvetica", halign, valign, spacing=1.0, direction="ltr", language="en", script="latin", anchor="baseline", spin=0) {
module text(text, size=10, font, halign, valign, spacing=1.0, direction="ltr", language="en", script="latin", anchor="baseline", spin=0) {
no_children($children);
dummy1 =
assert(is_undef(anchor) || is_vector(anchor) || is_string(anchor), str("Got: ",anchor))
Expand Down
6 changes: 3 additions & 3 deletions shapes3d.scad
Original file line number Diff line number Diff line change
Expand Up @@ -3355,12 +3355,12 @@ function onion(r, ang=45, cap_h, d, anchor=CENTER, spin=0, orient=UP) =
// ycenter = Anchor center is relative to the actualy y direction center of the text
// Examples:
// text3d("Fogmobar", h=3, size=10);
// text3d("Fogmobar", h=2, size=12, font="Helvetica");
// text3d("Fogmobar", h=2, size=12, font="Courier");
// text3d("Fogmobar", h=2, anchor=CENTER);
// text3d("Fogmobar", h=2, anchor=CENTER, atype="ycenter");
// text3d("Fogmobar", h=2, anchor=RIGHT);
// text3d("Fogmobar", h=2, anchor=RIGHT+BOT, atype="ycenter");
module text3d(text, h, size=10, font="Helvetica", spacing=1.0, direction="ltr", language="en", script="latin",
module text3d(text, h, size=10, font, spacing=1.0, direction="ltr", language="en", script="latin",
height, thickness, atype, center=false,
anchor, spin=0, orient=UP) {
no_children($children);
Expand Down Expand Up @@ -3475,7 +3475,7 @@ function _cut_interp(pathcut, path, data) =
// text = text to create
// size = The font will be created at this size divided by 0.72.
// thickness / h / height = thickness of letters (not allowed for 2D path)
// font = font to use. Default: "Liberation Sans"
// font = Font to use. Default: "Liberation Sans" (standard OpenSCAD default)
// ---
// lettersize = scalar or array giving size of letters
// center = center text on the path instead of starting at the first point. Default: false
Expand Down

0 comments on commit f03d430

Please sign in to comment.