@@ -1836,13 +1836,13 @@ def testText(self):
1836
1836
box = Workplane ("XY" ).box (4 , 4 , 0.5 )
1837
1837
1838
1838
obj1 = box .faces ('>Z' ).workplane ()\
1839
- .text ('CQ 2.0' ,0.5 ,- .05 ,cut = True ,halign = 'left' ,valign = 'bottom' )
1839
+ .text ('CQ 2.0' ,0.5 ,- .05 ,cut = True ,halign = 'left' ,valign = 'bottom' , font = 'Sans' )
1840
1840
1841
1841
#combined object should have smaller volume
1842
1842
self .assertGreater (box .val ().Volume (),obj1 .val ().Volume ())
1843
1843
1844
1844
obj2 = box .faces ('>Z' ).workplane ()\
1845
- .text ('CQ 2.0' ,0.5 ,.05 ,cut = False ,combine = True )
1845
+ .text ('CQ 2.0' ,0.5 ,.05 ,cut = False ,combine = True , font = 'Sans' )
1846
1846
1847
1847
#combined object should have bigger volume
1848
1848
self .assertLess (box .val ().Volume (),obj2 .val ().Volume ())
@@ -1851,7 +1851,7 @@ def testText(self):
1851
1851
self .assertEqual (len (obj2 .faces ('>Z' ).vals ()),5 )
1852
1852
1853
1853
obj3 = box .faces ('>Z' ).workplane ()\
1854
- .text ('CQ 2.0' ,0.5 ,.05 ,cut = False ,combine = False ,halign = 'right' ,valign = 'top' )
1854
+ .text ('CQ 2.0' ,0.5 ,.05 ,cut = False ,combine = False ,halign = 'right' ,valign = 'top' , font = 'Sans' )
1855
1855
1856
1856
#verify that the number of solids is correct
1857
1857
self .assertEqual (len (obj3 .solids ().vals ()),5 )
0 commit comments