Skip to content

Instantly share code, notes, and snippets.

@macropin
Created August 5, 2017 00:02
Show Gist options
  • Save macropin/125dce114516f3e93091ad5c55758e09 to your computer and use it in GitHub Desktop.
Save macropin/125dce114516f3e93091ad5c55758e09 to your computer and use it in GitHub Desktop.
OpenSCAD Cursive Font Label Generator
// Example: OpenSCAD Cursive Font Generator with offset first letter
// https://www.fontsquirrel.com/fonts/great-vibes
module label(fname, lname, space=1, baseline_shift=0) {
$fn=256;
font_big = 30;
font_small = 30;
boldness = 50;
// rotate if you want to flip the print
//rotate([180,0,0])
linear_extrude(height=3)
offset(r=0.01*boldness) {
union() {
text(fname, size=font_big, font="Great Vibes");
translate([font_big*space,baseline_shift,0]) text(lname, size=font_small, font="Great Vibes");
}
}
}
// example usage
label("K", "elly", 1.5, 0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment