parent
3da1b3f05d
commit
97bfb4004b
@ -95,6 +95,8 @@ namespace hex::init {
|
|||||||
ImFontConfig cfg = {};
|
ImFontConfig cfg = {};
|
||||||
|
|
||||||
std::fs::path fontFile = ContentRegistry::Settings::read("hex.builtin.setting.font", "hex.builtin.setting.font.font_path", "");
|
std::fs::path fontFile = ContentRegistry::Settings::read("hex.builtin.setting.font", "hex.builtin.setting.font.font_path", "");
|
||||||
|
if (!fs::exists(fontFile))
|
||||||
|
fontFile.clear();
|
||||||
|
|
||||||
// If no custom font has been specified, search for a file called "font.ttf" in one of the resource folders
|
// If no custom font has been specified, search for a file called "font.ttf" in one of the resource folders
|
||||||
if (fontFile.empty()) {
|
if (fontFile.empty()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user