Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
make text-max-size not affect rendering size
Browse files Browse the repository at this point in the history
This way it matches -js. The real fix will eventually be
mapbox/mapbox-gl-style-spec#255
  • Loading branch information
ansis committed Apr 24, 2015
1 parent 06eabb8 commit 17010bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mbgl/renderer/painter_symbol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 17010bf

Please sign in to comment.