MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / Height

Method Height

other_src/ftgl/src/FTSize.cpp:83–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81
82
83float FTSize::Height() const
84{
85 if(0 == ftSize)
86 {
87 return 0.0f;
88 }
89
90 if(FT_IS_SCALABLE((*ftFace)))
91 {
92 return ((*ftFace)->bbox.yMax - (*ftFace)->bbox.yMin) * ((float)ftSize->metrics.y_ppem / (float)(*ftFace)->units_per_EM);
93 }
94 else
95 {
96 return static_cast<float>(ftSize->metrics.height) / 64.0f;
97 }
98}
99
100
101float FTSize::Width() const

Callers 5

testConstructorMethod · 0.80
testSetCharSizeMethod · 0.80
MakeGlyphImplMethod · 0.80
LineHeightMethod · 0.80
FTBufferGlyph.cppFile · 0.80

Calls

no outgoing calls

Tested by 2

testConstructorMethod · 0.64
testSetCharSizeMethod · 0.64