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

Method SetFonts

src/widgets/Ruler.cpp:231–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229}
230
231void Ruler::SetFonts(const wxFont &minorFont, const wxFont &majorFont, const wxFont &minorMinorFont)
232{
233 // Won't override these fonts
234
235 mpUserFonts = std::make_unique<RulerStruct::Fonts>(
236 RulerStruct::Fonts{ majorFont, minorFont, minorMinorFont, 0 } );
237
238 wxScreenDC dc;
239 wxCoord height;
240 FindFontHeights( height, mpUserFonts->lead, dc, majorFont );
241
242 mRulerStruct.mpFonts.reset();
243 mRulerStruct.mpFonts.reset();
244 Invalidate();
245}
246
247void Ruler::SetNumberScale(const NumberScale &scale)
248{

Callers 1

MeterPanelMethod · 0.80

Calls 2

FindFontHeightsFunction · 0.85
resetMethod · 0.45

Tested by

no test coverage detected