User Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
design_guide_text [2018/09/16 02:23]
z3dev
design_guide_text [2018/09/16 03:41]
z3dev
Line 38: Line 38:
  
 === Text Strings === === Text Strings ===
 +
 +In addition to single characters, complete text strings can be converted to a series of outlines, i.e. segments. Text can be split into multiple lines by including '​\n'​. And of course, text can be aligned and spaced by specifying options.
  
 Defaults: Defaults:
Line 50: Line 52:
  
 //Note: The old function vector_text(x,​y,​string) is also available but will be deprecated in the V2 API.// //Note: The old function vector_text(x,​y,​string) is also available but will be deprecated in the V2 API.//
 +
 +<code javascript>​
 +let text1 = vectorText('​OpenJSCAD'​);​
 +let text2 = vectorText({ yOffset: -90, height: 10, extrudeOffset:​ 2, input: '​OpenJSCAD\nLOVE<​3'​ });
 +let text3 = vectorText({ height: 25, align: '​right',​ lineSpacing:​ 2.2, extrudeOffset:​ 2 }, '​OpenJSCAD\nRocks!!'​);​
 +</​code>​
  
 === Using Other Fonts === === Using Other Fonts ===