FIX:romove font style preview

Change-Id: I1e8f2ffd94db967f17fa561fd5c56a20f718631b
This commit is contained in:
liz.li 2022-12-08 11:22:22 +08:00 committed by Lane.Wei
parent 4ea3d16fcc
commit 1da9bfcc13
5 changed files with 76 additions and 75 deletions

View file

@ -84,11 +84,14 @@ std::vector<std::string> init_occt_fonts()
file_type.LowerCase();
if (file_type == "ttf" || file_type == "otf" || file_type == "ttc") {
g_occt_fonts_maps.insert(std::make_pair(afn->ToCString(), decode_path(font_path.ToCString())));
stdFontNames.push_back(afn->ToCString());
}
}
}
BOOST_LOG_TRIVIAL(info) << "init_occt_fonts end";
// in order
for (auto occt_font : g_occt_fonts_maps) {
stdFontNames.push_back(occt_font.first);
}
return stdFontNames;
}