fix compiler error for Linux

This commit is contained in:
Jinhao 2017-11-24 04:58:59 +08:00
parent dddd704786
commit 474ff25426

View File

@ -366,7 +366,7 @@ namespace nana
if(font_family.empty()) if(font_family.empty())
font_family = '*'; font_family = '*';
std::string pat_str = font_family + '-' + std::to_string(size_pt ? size_pt : font_default_pt()); std::string pat_str = font_family + '-' + std::to_string(size_pt ? size_pt : platform_abstraction::font_default_pt());
auto pat = ::XftNameParse(pat_str.c_str()); auto pat = ::XftNameParse(pat_str.c_str());
XftResult res; XftResult res;
auto match_pat = ::XftFontMatch(disp, ::XDefaultScreen(disp), pat, &res); auto match_pat = ::XftFontMatch(disp, ::XDefaultScreen(disp), pat, &res);