Font selector
This commit is contained in:
@@ -82,13 +82,13 @@ void TestBuildsTextOverlayFontAtlas()
|
||||
Expect(false, ("text overlay font atlas builds: " + error).c_str());
|
||||
return;
|
||||
}
|
||||
Expect(outputs.size() == 1, "one font atlas output is produced");
|
||||
if (!outputs.empty())
|
||||
Expect(outputs.size() == shaderPackage.fontAssets.size(), "one font atlas output is produced for each declared font");
|
||||
for (const RenderCadenceCompositor::FontAtlasBuildOutput& output : outputs)
|
||||
{
|
||||
Expect(std::filesystem::exists(outputs[0].imagePath), "font atlas image exists");
|
||||
Expect(std::filesystem::exists(outputs[0].jsonPath), "font atlas json exists");
|
||||
Expect(std::filesystem::file_size(outputs[0].imagePath) > 0, "font atlas image is not empty");
|
||||
Expect(std::filesystem::file_size(outputs[0].jsonPath) > 0, "font atlas json is not empty");
|
||||
Expect(std::filesystem::exists(output.imagePath), "font atlas image exists");
|
||||
Expect(std::filesystem::exists(output.jsonPath), "font atlas json exists");
|
||||
Expect(std::filesystem::file_size(output.imagePath) > 0, "font atlas image is not empty");
|
||||
Expect(std::filesystem::file_size(output.jsonPath) > 0, "font atlas json is not empty");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user