2 puts "OCC24181 Render text as BRep (composite curve)"
8 set THE_TEXT "The quick brown fox\njumps over the lazy dog!"
9 set THE_FONT_NAME sans-serif
10 set THE_FONT_SIZES {12 18 24}
20 foreach aSize $THE_FONT_SIZES {
21 set aText "\[$aSize\] $THE_TEXT"
23 vpoint aPnt_$aSize 0.0 $aLine 0.0
24 vdrawtext "Line_$aLineId" $aText -pos 0.0 $aLine 0.0 -color 0.0 1.0 1.0 -halign left -valign top -angle 000 -zoom 1 -height $aSize -aspect bolditalic -font $THE_FONT_NAME
26 text2brep aBText_$aSize $aText -font $THE_FONT_NAME -height $aSize -aspect bolditalic -composite on -pos 0.0 $aLine 0.0 -valign topfirstline
27 vdisplay aBText_$aSize
28 set aLine [expr $aLine - 4.0 * $aSize]
29 set aLineId [expr $aLineId + 1]
35 checkview -screenshot -3d -path ${imagedir}/${test_image}.png