0024387: Tests - use system-independent fonts in test cases
[occt.git] / tests / bugs / vis / bug25732_2
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 1 2 3
12explode b F
13
14vinit
15vsetdispmode 1
16
17vdisplay b_1 b_2
18vfit
19
6fb1a930 20vdrawtext text "SAMPLE TEXT" -pos 1 0 3 -color 1.0 0.0 0.0 -halign left -valign bottom -angle 0 -zoom 0 -height 30 -aspect regular -font SansFont
348ff753 21
22set bug_info [vreadpixel 260 137 rgb name]
23if {$bug_info != "RED"} {
24 puts "ERROR: OCC25732 is reproduced. Text is missed."
25}
26
27set only_screen 1