const std::shared_ptr<internal::font_impl>& getChartFont() { static internal::_Font mChartFont; static std::once_flag flag; std::call_once(flag, []() { #if defined(OS_WIN) mChartFont.loadSystemFont("Calibri", 32); #else mChartFont.loadSystemFont("Vera", 32); #endif }); return mChartFont.impl(); }
internal::_Font& getChartFont() { static internal::_Font mChartFont; static std::once_flag flag; std::call_once(flag, []() { #if defined(OS_WIN) mChartFont.loadSystemFont("Calibri", 32); #else mChartFont.loadSystemFont("Vera", 32); #endif }); return mChartFont; }