Fix display of Unicode font names in the fonts collector dialog
This commit is contained in:
parent
2fdbc73721
commit
e0bf0317c9
1 changed files with 4 additions and 4 deletions
|
@ -134,21 +134,21 @@ void FontCollector::ProcessChunk(std::pair<StyleInfo, UsageData> const& style) {
|
||||||
FontFileLister::CollectionResult res = lister.GetFontPaths(style.first.facename, style.first.bold, style.first.italic, style.second.chars);
|
FontFileLister::CollectionResult res = lister.GetFontPaths(style.first.facename, style.first.bold, style.first.italic, style.second.chars);
|
||||||
|
|
||||||
if (res.paths.empty()) {
|
if (res.paths.empty()) {
|
||||||
status_callback(wxString::Format(_("Could not find font '%s'\n"), style.first.facename), 2);
|
status_callback(wxString::Format(_("Could not find font '%s'\n"), to_wx(style.first.facename)), 2);
|
||||||
PrintUsage(style.second);
|
PrintUsage(style.second);
|
||||||
++missing;
|
++missing;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
for (size_t i = 0; i < res.paths.size(); ++i) {
|
for (size_t i = 0; i < res.paths.size(); ++i) {
|
||||||
if (results.insert(res.paths[i]).second)
|
if (results.insert(res.paths[i]).second)
|
||||||
status_callback(wxString::Format(_("Found '%s' at '%s'\n"), style.first.facename, res.paths[i].make_preferred().wstring()), 0);
|
status_callback(wxString::Format(_("Found '%s' at '%s'\n"), to_wx(style.first.facename), res.paths[i].make_preferred().wstring()), 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (res.missing.size()) {
|
if (res.missing.size()) {
|
||||||
if (res.missing.size() > 50)
|
if (res.missing.size() > 50)
|
||||||
status_callback(wxString::Format(_("'%s' is missing %d glyphs used.\n"), style.first.facename, (int)res.missing.size()), 2);
|
status_callback(wxString::Format(_("'%s' is missing %d glyphs used.\n"), to_wx(style.first.facename), (int)res.missing.size()), 2);
|
||||||
else if (res.missing.size() > 0)
|
else if (res.missing.size() > 0)
|
||||||
status_callback(wxString::Format(_("'%s' is missing the following glyphs used: %s\n"), style.first.facename, format_missing(res.missing)), 2);
|
status_callback(wxString::Format(_("'%s' is missing the following glyphs used: %s\n"), to_wx(style.first.facename), format_missing(res.missing)), 2);
|
||||||
PrintUsage(style.second);
|
PrintUsage(style.second);
|
||||||
++missing_glyphs;
|
++missing_glyphs;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue