* Ignored get_call_stack in stack traces on Linux.
log = paths.get(L"log-path", initialPath + L"/log/");
ftemplate = boost::filesystem::complete(paths.get(L"template-path", initialPath + L"/template/")).wstring();
data = paths.get(L"data-path", initialPath + L"/data/");
- font = paths.get(L"font-path", initialPath + L"/fonts/");
+ font = paths.get(L"fonts-path", initialPath + L"/fonts/");
thumbnails = paths.get(L"thumbnails-path", initialPath + L"/data/");
}
catch(...)
return pt;
}
-std::wstring system_font_folder()
-{
- return L"C:\\windows\\Fonts\\";
-}
-
}}
const std::wstring& template_folder();
const std::wstring& data_folder();
const std::wstring& thumbnails_folder();
-const std::wstring& version();
-
const std::wstring& font_folder();
-std::wstring system_font_folder();
+const std::wstring& version();
const boost::property_tree::wptree& properties();
-} }
\ No newline at end of file
+} }
{
auto entries = std::shared_ptr<char*>(strings, free);
std::wostringstream stream;
+ stream << std::endl;
for (int i = 0; i != size; ++i)
{
- stream << demangle(strings[i]).c_str() << std::endl;
+ auto demangled = demangle(strings[i]);
+
+ if (demangled.find("caspar::get_call_stack") == std::string::npos)
+ stream << demangled.c_str() << std::endl;
}
return stream.str();
auto scene = spl::make_shared<scene_producer>(format_desc.width, format_desc.height);
text::text_info text_info;
- text_info.font = L"Arial";
+ text_info.font = L"ArialMT";
text_info.size = 62;
text_info.color.r = 1;
text_info.color.g = 1;
if(err)
return result;
- auto fonts = directory_iterator(env::system_font_folder());
+ auto fonts = directory_iterator(env::font_folder());
auto end = directory_iterator();
for(; fonts != end; ++fonts)
{
void init()
{
fonts = enumerate_fonts();
- if(!fonts.empty())
- register_producer_factory(&create_text_producer);
+ register_producer_factory(&create_text_producer);
}
text_info& find_font_file(text_info& info)