OpenGl_TextFormatter - orient triangles in normal counter-clockwise order (GL_CCW).
Test-cases for issue #25732
// apply floor on position to avoid blurring issues
// due to cross-pixel coordinates
// apply floor on position to avoid blurring issues
// due to cross-pixel coordinates
- aVerts.Append (floor(aRect.BottomLeft (aVec)));
- aVerts.Append (floor(aRect.TopLeft (aVec)));
aVerts.Append (floor(aRect.TopRight (aVec)));
aVerts.Append (floor(aRect.TopRight (aVec)));
- aTCrds.Append (aRectUV.BottomLeft (aVec));
- aTCrds.Append (aRectUV.TopLeft (aVec));
+ aVerts.Append (floor(aRect.TopLeft (aVec)));
+ aVerts.Append (floor(aRect.BottomLeft (aVec)));
aTCrds.Append (aRectUV.TopRight (aVec));
aTCrds.Append (aRectUV.TopRight (aVec));
+ aTCrds.Append (aRectUV.TopLeft (aVec));
+ aTCrds.Append (aRectUV.BottomLeft (aVec));
- aVerts.Append (floor(aRect.BottomLeft (aVec)));
- aVerts.Append (floor(aRect.TopRight (aVec)));
aVerts.Append (floor(aRect.BottomRight (aVec)));
aVerts.Append (floor(aRect.BottomRight (aVec)));
- aTCrds.Append (aRectUV.BottomLeft (aVec));
- aTCrds.Append (aRectUV.TopRight (aVec));
+ aVerts.Append (floor(aRect.TopRight (aVec)));
+ aVerts.Append (floor(aRect.BottomLeft (aVec)));
aTCrds.Append (aRectUV.BottomRight (aVec));
aTCrds.Append (aRectUV.BottomRight (aVec));
+ aTCrds.Append (aRectUV.TopRight (aVec));
+ aTCrds.Append (aRectUV.BottomLeft (aVec));
--- /dev/null
+puts "========"
+puts "OCC25732"
+puts "========"
+puts ""
+#########################################################################################
+# Visualization, TKOpenGl - back face culling should not affect textured font rendering
+#########################################################################################
+
+box b -100 0 -200 50 100 200
+
+vinit View1
+vclear
+vaxo
+
+vdisplay b
+vfit
+vsetdispmode b 1
+
+vdrawtext "Open\nCASCADE" 0 0 0 255 0 0 1 1 -45 1 50 1 Arial
+
+set bug_info [vreadpixel 255 283 rgb name]
+if {$bug_info != "RED"} {
+ puts "ERROR: OCC25732 is reproduced. Text is missed."
+}
+
+set only_screen 1
--- /dev/null
+puts "========"
+puts "OCC25732"
+puts "========"
+puts ""
+#########################################################################################
+# Visualization, TKOpenGl - back face culling should not affect textured font rendering
+#########################################################################################
+
+box b 1 2 3
+explode b F
+
+vinit
+vsetdispmode 1
+
+vdisplay b_1 b_2
+vfit
+
+vdrawtext "SAMPLE TEXT" 1 0 3 255 0 0 0 0 0 0 30 1
+
+set bug_info [vreadpixel 260 137 rgb name]
+if {$bug_info != "RED"} {
+ puts "ERROR: OCC25732 is reproduced. Text is missed."
+}
+
+set only_screen 1