MCPcopy Create free account
hub / github.com/ImageEngine/cortex / testCharBound

Method testCharBound

test/IECoreScene/FontTest.py:56–64  ·  view source on GitHub ↗
( self )

Source from the content-addressed store, hash-verified

54 self.assertTrue( m.isInstanceOf( IECoreScene.MeshPrimitive.staticTypeId() ) )
55
56 def testCharBound( self ) :
57
58 f = IECoreScene.Font( os.path.join( "test", "IECore", "data", "fonts", "Vera.ttf" ) )
59
60 b = f.bound()
61 for c in range( 0, 128 ) :
62
63 bb = f.bound( chr( c ) )
64 self.assertTrue( IECore.BoxAlgo.contains( b, bb ) )
65
66 def testThreading( self ) :
67

Callers

nothing calls this directly

Calls 4

boundMethod · 0.95
joinMethod · 0.80
FontMethod · 0.45
containsMethod · 0.45

Tested by

no test coverage detected