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

Method GetFont

src/widgets/MeterPanel.cpp:1102–1113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1100}
1101
1102wxFont MeterPanel::GetFont() const
1103{
1104 int fontSize = 10;
1105#if defined(__WXMSW__)
1106 fontSize = 8;
1107#elif defined(__WXGTK__)
1108 auto defaultFont = wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT);
1109 fontSize = defaultFont.GetPointSize() - 2;
1110#endif
1111
1112 return wxFont(fontSize, wxFONTFAMILY_SWISS, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL);
1113}
1114
1115void MeterPanel::ResetBar(MeterBar *b, bool resetClipping)
1116{

Callers 12

PopulateMethod · 0.45
PopulateProgressPanelMethod · 0.45
AddLoadingPageMethod · 0.45
AddBecomeAPartnerPageMethod · 0.45
AddLoadingErrorPageMethod · 0.45
EllipsizeToTwoLinesFunction · 0.45
AddEffectsPageMethod · 0.45
UpdateNoticeDialogMethod · 0.45
DrawMethod · 0.45
DrawMethod · 0.45
SetFontMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected