[Emboss] Fix issue that font search not working on macOS (#12531)

Fix issue that font search not working on macOS
This commit is contained in:
Noisyfox
2026-03-04 12:46:50 +08:00
committed by GitHub
parent d54adafdaa
commit 6d6f7451d4

View File

@@ -3401,8 +3401,11 @@ bool load(Facenames &facenames) {
facenames.hash = data.hash;
facenames.faces.reserve(data.good.size());
for (const wxString &face : data.good)
facenames.faces_names.reserve(data.good.size());
for (const wxString &face : data.good) {
facenames.faces.push_back({face});
facenames.faces_names.push_back(face.utf8_string());
}
facenames.bad = data.bad;
return true;
}