File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,8 +46,6 @@ class Config
4646 bool show_text_tools = true ;
4747 bool enable_vsync = true ;
4848 bool render_anns = true ;
49-
50- std::unordered_map<std::string, std::string> lang_fonts_paths;
5149 } File;
5250
5351 // Only from CLI arguments
Original file line number Diff line number Diff line change @@ -53,21 +53,6 @@ void Config::LoadConfigFile(const std::string& filename)
5353
5454 File.allow_out_edit = GetValue<bool >(" default.allow-edit-ocr" , false ); // deprecated
5555 File.allow_out_edit = GetValue<bool >(" default.allow-text-edit" , File.allow_out_edit );
56-
57- const toml::table* all_langs_tbl = m_tbl[" lang" ].as_table ();
58- if (!all_langs_tbl)
59- return ;
60-
61- for (const auto & [lang_code, lang_node] : *all_langs_tbl)
62- {
63- const toml::table* lang_tbl = lang_node.as_table ();
64- if (!lang_tbl)
65- continue ;
66-
67- const std::optional<std::string>& font_str = lang_tbl->at_path (" font" ).value <std::string>();
68- if (font_str)
69- this ->File .lang_fonts_paths [lang_code.data ()] = font_str.value ();
70- }
7156}
7257
7358void Config::OverrideOption (const std::string& opt)
You can’t perform that action at this time.
0 commit comments