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

Method testLineSpacing

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

Source from the content-addressed store, hash-verified

82 thread.join()
83
84 def testLineSpacing( self ) :
85
86 font = IECoreScene.Font( os.path.join( "test", "IECore", "data", "fonts", "Vera.ttf" ) )
87 self.assertAlmostEqual( font.getLineSpacing(), 1.2 )
88
89 font.setLineSpacing( 1.25 )
90 self.assertEqual( font.getLineSpacing(), 1.25 )
91
92 self.assertGreater( font.bound( "T\nT" ).size().y, font.bound( "TT" ).size().y )
93
94 def testInvalidChar( self ) :
95

Callers

nothing calls this directly

Calls 6

getLineSpacingMethod · 0.95
setLineSpacingMethod · 0.95
boundMethod · 0.95
joinMethod · 0.80
FontMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected