Linux side code refactoring
This commit is contained in:
@@ -19,9 +19,15 @@ TEST_CASE("Search system fonts")
|
||||
std::string path = SystemFontResolver::GetSystemFontPath("Ubuntu Regular");
|
||||
REQUIRE(path == "/usr/share/fonts/truetype/ubuntu/Ubuntu-R.ttf");
|
||||
|
||||
path = SystemFontResolver::GetSystemFontPath("ubuntu regular");
|
||||
REQUIRE(path == "/usr/share/fonts/truetype/ubuntu/Ubuntu-R.ttf");
|
||||
|
||||
path = SystemFontResolver::GetSystemFontPath("Ubuntu Mono Bold Italic");
|
||||
REQUIRE(path == "/usr/share/fonts/truetype/ubuntu/UbuntuMono-BI.ttf");
|
||||
|
||||
path = SystemFontResolver::GetSystemFontPath("ubuntu mono bold italic");
|
||||
REQUIRE(path == "/usr/share/fonts/truetype/ubuntu/UbuntuMono-BI.ttf");
|
||||
|
||||
path = SystemFontResolver::GetSystemFontPath("NON-EXISTING Font");
|
||||
REQUIRE(path.empty());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user