do not round variation axes

we introduced this to possibly decrease memory footprint,
but some fonts are more granular than others
This commit is contained in:
jrkb 2023-05-05 14:58:15 +02:00
parent e1746e5ab6
commit 52086dbcd9

View file

@ -98,7 +98,7 @@ void GPUFontLayer::setProps(const Props & props){
glyphAppearance.letterSpacing = vProps.letterSpacing;
for(const auto & fv : vProps.fontVariations){
glyphIdentity.coords.push_back(
std::move(ofxGPUFont::float2f16dot16(round(fv.value * 0.1) * 10)) // convert to FT
std::move(ofxGPUFont::float2f16dot16(fv.value)) // convert to FT
// NOTE: we are also rounding here, since in practice a variation
// of 100.0 will not look much different than 100.124
);