meta data for this page
  •  

Differences

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

Link to this comparison view

Next revision
Previous revision
en:quick_reference_text [2020/12/01 04:36]
JSCAD Editor created
en:quick_reference_text [2022/05/02 08:06] (current)
JSCAD Editor
Line 1: Line 1:
 ==== Text ==== ==== Text ====
  
-tbw+The 'text' functions are accessed through the modeling API using the following: 
 + 
 +<code javascript> 
 +const { vectorChar, vectorText } = require('@jscad/modeling').text 
 +</code> 
 + 
 +^  Function  ^  Notes  ^ 
 +| let vectorCharObject = vectorChar({ xOffset: 10, yOffset: 50, height: 18, input: '!' })  | [[https://www.openjscad.xyz/docs/module-modeling_transforms.html#.vectorChar | API]]  | 
 +| let arrayOfSegments = vectorText({ xOffset: 10, yOffset: 50, height: 18, input: 'line1\nline2' })  | [[https://www.openjscad.xyz/docs/module-modeling_transforms.html#.vectorText | API]]  |