0024387: Tests - use system-independent fonts in test cases
[occt.git] / tests / bugs / vis / bug25732_1
CommitLineData
348ff753 1puts "========"
2puts "OCC25732"
3puts "========"
4puts ""
5#########################################################################################
6# Visualization, TKOpenGl - back face culling should not affect textured font rendering
7#########################################################################################
8
6fb1a930 9vfont add [locate_data_file DejaVuSans.ttf] SansFont
10
348ff753 11box b -100 0 -200 50 100 200
12
13vinit View1
14vclear
15vaxo
16
17vdisplay b
18vfit
19vsetdispmode b 1
20
6fb1a930 21vdrawtext text "Open\nCASCADE" -pos 0 0 0 -color 1.0 0.0 0.0 -halign center -valign center -angle -45 -zoom 1 -height 50 -aspect regular -font SansFont
348ff753 22
6fb1a930 23set x_coord 255
24set y_coord 277
37d6975c 25
26set bug_info [vreadpixel ${x_coord} ${y_coord} rgb name]
348ff753 27if {$bug_info != "RED"} {
28 puts "ERROR: OCC25732 is reproduced. Text is missed."
29}
30
31set only_screen 1