From b59f2da3e37b6706ff100cbbbe806620bbda2013 Mon Sep 17 00:00:00 2001 From: Leon Styhre <leon@leonstyhre.com> Date: Fri, 2 Jul 2021 18:51:01 +0200 Subject: [PATCH] Now skipping missing font file checks for bundled fonts. --- es-core/src/resources/Font.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/es-core/src/resources/Font.cpp b/es-core/src/resources/Font.cpp index 196f9ce23..5f3f6f94b 100644 --- a/es-core/src/resources/Font.cpp +++ b/es-core/src/resources/Font.cpp @@ -724,7 +724,7 @@ std::shared_ptr<Font> Font::getFromTheme(const ThemeData::ThemeElement* elem, if (properties & FONT_PATH && elem->has("fontPath")) path = elem->get<std::string>("fontPath"); - if (!Utils::FileSystem::exists(path)) { + if (!((path[0] == ':') && (path[1] == '/')) && !Utils::FileSystem::exists(path)) { LOG(LogError) << "Font file \"" << path << "\" defined by the theme does not exist, " "falling back to \"" << getDefaultPath() << "\""; path = getDefaultPath();