Text rendering
Some checks failed
CI / React UI Build (push) Successful in 40s
CI / Native Windows Build And Tests (push) Failing after 2m28s
CI / Windows Release Package (push) Has been skipped

This commit is contained in:
2026-05-21 15:39:37 +10:00
parent 09efe2d6a0
commit df0a77ef01
8 changed files with 107 additions and 52 deletions

View File

@@ -12,8 +12,8 @@ struct FontAtlasBuildConfig
{
std::filesystem::path repoRoot;
std::filesystem::path cacheRoot;
double sizePixelsPerEm = 64.0;
double pixelRange = 4.0;
double sizePixelsPerEm = 128.0;
double pixelRange = 8.0;
std::string atlasType = "mtsdf";
};

View File

@@ -15,6 +15,12 @@ struct RuntimeShaderPassArtifact
std::string outputName;
};
struct RuntimeTextTextureMetrics
{
float activeWidthScale = 1.0f;
float aspect = 1.0f;
};
struct RuntimeShaderArtifact
{
std::string layerId;
@@ -25,6 +31,6 @@ struct RuntimeShaderArtifact
std::string message;
std::vector<ShaderParameterDefinition> parameterDefinitions;
std::map<std::string, ShaderParameterValue> parameterValues;
std::map<std::string, float> textTextureWidthScales;
std::map<std::string, RuntimeTextTextureMetrics> textTextureMetrics;
std::vector<RenderCadenceCompositor::FontAtlasBuildOutput> fontAtlases;
};