Thingiverse
Measuring and wrapping text in OpenSCAD
by arpruss
79
Downloads
91
Likes
0
Makes
OpenSCAD does not have built-in functions for measuring text size and word wrapping text. This library provides these.
Make sure you have `fontmetricsdata.scad` and `fontmetrics.scad` in your current directory and that you start your code with
use ;
Public modules:
* `drawWrappedText(text,font="Liberation Sans",size=10,spacing=1,linespacing=1,indent=0,width=800,halign="left")`: wrap `text` to the specified width; you can have multiple paragraphs separated by `\n`, and you can choos
Make sure you have `fontmetricsdata.scad` and `fontmetrics.scad` in your current directory and that you start your code with
use ;
Public modules:
* `drawWrappedText(text,font="Liberation Sans",size=10,spacing=1,linespacing=1,indent=0,width=800,halign="left")`: wrap `text` to the specified width; you can have multiple paragraphs separated by `\n`, and you can choos
Makes
Did you print this model? Sign in and share your make!
Sign in to leave a comment
Sign in