Created
August 5, 2017 00:02
-
-
Save macropin/125dce114516f3e93091ad5c55758e09 to your computer and use it in GitHub Desktop.
OpenSCAD Cursive Font Label Generator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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