make text-max-size not affect rendering size

This way it matches -js. The real fix will eventually be
https://github.com/mapbox/mapbox-gl-style-spec/issues/255
This commit is contained in:
Ansis Brammanis
2015-04-24 14:27:50 -07:00
parent 06eabb8b51
commit 17010bfd73

View File

@@ -35,7 +35,7 @@ void Painter::renderSDF(SymbolBucket &bucket,
}
// If layerStyle.size > bucket.info.fontSize then labels may collide
float fontSize = std::fmin(styleProperties.size, bucketProperties.max_size);
float fontSize = styleProperties.size;
float fontScale = fontSize / sdfFontSize;
matrix::scale(exMatrix, exMatrix, fontScale, fontScale, 1.0f);