0030922: Visualization - OpenGl_Text wrong local transformation if text has not own...
authormzernova <mzernova@opencascade.com>
Tue, 16 Jun 2020 11:24:26 +0000 (14:24 +0300)
committermzernova <mzernova@opencascade.com>
Tue, 16 Jun 2020 11:29:41 +0000 (14:29 +0300)
bugs/vis/bug30922: test case added

tests/bugs/vis/bug30922 [new file with mode: 0644]

diff --git a/tests/bugs/vis/bug30922 b/tests/bugs/vis/bug30922
new file mode 100644 (file)
index 0000000..1208fc0
--- /dev/null
@@ -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