MCPcopy Create free account
hub / github.com/audacity/audacity / FindFontHeights

Function FindFontHeights

src/widgets/Ruler.cpp:211–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209
210namespace {
211void FindFontHeights(
212 wxCoord &height, wxCoord &lead, wxDC &dc, const wxFont &font )
213{
214 wxCoord strW, strH, strD, strL;
215 static const wxString exampleText = wxT("0.9"); //ignored for height calcs on all platforms
216 dc.SetFont( font );
217 dc.GetTextExtent(exampleText, &strW, &strH, &strD, &strL);
218 height = strH - strD - strL;
219 lead = strL;
220}
221
222void FindFontHeights(
223 wxCoord &height, wxCoord &lead,

Callers 2

SetFontsMethod · 0.85
ChooseFontsMethod · 0.85

Calls 1

SetFontMethod · 0.80

Tested by

no test coverage detected