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

@ -32,7 +32,7 @@ GLGizmoText::GLGizmoText(GLCanvas3D& parent, const std::string& icon_filename, u
bool GLGizmoText::on_init()
{
init_occt_fonts();
m_avail_font_names = init_occt_fonts();
m_shortcut_key = WXK_CONTROL_T;
return true;
}
@ -138,8 +138,6 @@ void GLGizmoText::pop_combo_style()
// BBS
void GLGizmoText::on_render_input_window(float x, float y, float bottom_limit)
{
std::vector<std::string> m_avail_font_names = wxGetApp().imgui()->get_fonts_names();
const float win_h = ImGui::GetWindowHeight();
y = std::min(y, bottom_limit - win_h);
GizmoImguiSetNextWIndowPos(x, y, ImGuiCond_Always, 0.0f, 0.0f);