1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-10 18:51:21 +03:00

0030922: Visualization - OpenGl_Text wrong local transformation if text has not own attach point

bugs/vis/bug30922: test case added
This commit is contained in:
mzernova 2020-06-16 14:24:26 +03:00
parent 32b723d5c6
commit 9a31c01064

16
tests/bugs/vis/bug30922 Normal file
View File

@ -0,0 +1,16 @@
puts "============="
puts "0030922: Visualization - OpenGl_Text wrong local transformation if text has not own attach point"
puts "============="
vfont add [locate_data_file DejaVuSans.ttf] SansFont
vinit View1
vtrihedron trihedr
vdrawtext Text "First line\nSecond line" -pos 10 0 0 -color red -plane 1 0 0 0 1 0 -flipping -halign center -valign top -height 50 -font SansFont
vright
vlocation Text -translate 0 10 150
if {[vreadpixel 106 232 rgb name] == "RED"} { puts "ERROR: the text is not moved" }
vdump $imagedir/${casename}.png