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

Method bound

src/IECoreScene/Font.cpp:417–424  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

415
416
417 Imath::Box2f bound() const
418 {
419 float scale = 1.0f / (float)(m_face->units_per_EM);
420 return Box2f(
421 V2f( (float)m_face->bbox.xMin * scale, (float)m_face->bbox.yMin * scale ),
422 V2f( (float)m_face->bbox.xMax * scale, (float)m_face->bbox.yMax * scale )
423 );
424 }
425
426 Imath::Box2f bound( char c ) const
427 {

Callers

nothing calls this directly

Calls 2

boundFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected