-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix font sizes as functions for curved labels
Each glyph has a `a_minzoom` and `a_maxzoom` which set the range of zoom levels it is safe to show the glyph if the glyph is rendered at the fontSize which was used for placement (the one set in the bucket). `u_zoom` is compared against the min and max values to see if the glyph can be shown. When the font size in the style is different than that at which the glyphs were placed, then the min and max zooms the glyph can be shown at change. Instead of changing the min and max zooms, this adjusts `u_zoom` so that less work needs to be done in the shader.
- Loading branch information
Showing
4 changed files
with
10 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters