0030439: Visualization - extend fonts search within Font_FontMgr::FindFont() on Linux
[occt.git] / tests / 3rdparty / fonts / B1
CommitLineData
b514beda 1puts "============"
2puts "OCC24181 Render text as BRep"
3puts "============"
4puts ""
5pload MODELING
6pload VISUALIZATION
7
8set THE_TEXT "The quick brown fox\njumps over the lazy dog!"
5b377041 9set THE_FONT_NAME sans-serif
b514beda 10set THE_FONT_SIZES {12 18 24}
11
12vsetdispmode 1
13vtop
14
5b377041 15dtracelevel trace
16vfont -verbose 1
17
b514beda 18set aLine 0
29e2c6d2 19set aLineId 0
b514beda 20foreach aSize $THE_FONT_SIZES {
21 set aText "\[$aSize\] $THE_TEXT"
22
23 vpoint aPnt_$aSize 0.0 $aLine 0.0
29e2c6d2 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
b514beda 25
ac84fcf6 26 text2brep aBText_$aSize $aText -font $THE_FONT_NAME -height $aSize -aspect bolditalic -composite off -pos 0.0 $aLine 0.0 -valign topfirstline
b514beda 27 vdisplay aBText_$aSize
28 set aLine [expr $aLine - 4.0 * $aSize]
29e2c6d2 29 set aLineId [expr $aLineId + 1]
b514beda 30}
31
32vfit
5747059b 33
34vglinfo
35checkview -screenshot -3d -path ${imagedir}/${test_image}.png