0024387: Tests - use system-independent fonts in test cases
[occt.git] / tests / bugs / vis / bug26149
index 48be5ee..19e096e 100644 (file)
@@ -3,32 +3,34 @@ puts "0026149: Visualization - depth buffer should not be written within Z-layer
 puts "Check that objects drawn in Graphic3d_ZLayerId_BotOSD layer do not overlap objects in Graphic3d_ZLayerId_Default layer."
 puts "==========="
 
+vfont add [locate_data_file DejaVuSans.ttf] SansFont
+
 pload MODELING VISUALIZATION
 vinit View1
 vclear
 vaxo
 
-text2brep tcc "Center" -font Times-Roman -height 30
+text2brep tcc "Center" -font SansFont -height 30
 vdisplay  tcc -2d -underlay
 polyline  lcc -50 -50 0 -50 50 0 50 50 0 50 0 0 0 -50 0 -50 -50 0
 vdisplay  lcc -2d -underlay
 
-text2brep tbl "Bottom-Left" -font Times-Roman -height 30
+text2brep tbl "Bottom-Left" -font SansFont -height 30
 vdisplay  tbl -2d -trsfPersPos -1 -1 5 -underlay
 polyline  lbl 0 0 0 0 100 0 100 100 0 100 50 0 50 0 0 0 0 0
 vdisplay  lbl -2d -trsfPersPos -1 -1 3 -underlay
 
-text2brep ttl "Top-Left" -font Times-Roman -height 30 -pos -27 0 0
+text2brep ttl "Top-Left" -font SansFont -height 30 -pos -27 0 0
 vdisplay  ttl -2d -trsfPersPos -1 1 30 -underlay
 polyline  ltl 0 -100 0 0 0 0 100 0 0 100 -50 0 50 -100 0 0 -100 0
 vdisplay  ltl -2d -trsfPersPos -1 1 3  -underlay
 
-text2brep ttr "Top-Right" -font Times-Roman -height 30 -pos -100 0 0
+text2brep ttr "Top-Right" -font SansFont -height 30 -pos -100 0 0
 vdisplay  ttr -2d -trsfPersPos 1 1 30 -underlay
 polyline  ltr -100 -100 0 -100 0 0 0 0 0 0 -50 0 -50 -100 0 -100 -100 0
 vdisplay  ltr -2d -trsfPersPos 1 1 3  -underlay
 
-text2brep tbr "Bottom-Right" -font Times-Roman -height 30 -pos -165 0 0
+text2brep tbr "Bottom-Right" -font SansFont -height 30 -pos -165 0 0
 vdisplay  tbr -2d -trsfPersPos 1 -1 5 -underlay
 polyline  lbr -100 0 0 -100 100 0 0 100 0 0 50 0 -50 0 0 -100 0 0
 vdisplay  lbr -2d -trsfPersPos 1 -1 3 -underlay