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

Fix icon-text-fit #15634

Merged
merged 3 commits into from
Oct 14, 2019
Merged

Fix icon-text-fit #15634

merged 3 commits into from
Oct 14, 2019

Conversation

kkaefer
Copy link
Contributor

@kkaefer kkaefer commented Sep 16, 2019

This fixes rendering by account for the 1px texture padding around icons that were stretched with icon-text-fit. We've added the 1px padding before, but didn't scale it accordingly when we are resizing the icon when it is stretched to fit the text. Adjusts the code to match the logic in GL JS.

Ports mapbox/mapbox-gl-js#8741 to native.

@kkaefer kkaefer requested a review from 1ec5 as a code owner October 14, 2019 12:38
@kkaefer kkaefer requested a review from a team October 14, 2019 12:38
@kkaefer kkaefer force-pushed the fix-icon-text-fit branch 2 times, most recently from cf6735c to 9b4e547 Compare October 14, 2019 13:20
@kkaefer
Copy link
Contributor Author

kkaefer commented Oct 14, 2019

Includes a patch that allows updating the submodule to a more recent version of mapbox-gl-js until we have #15800 implemented.

This fixes rendering by account for the 1px texture padding around icons that were stretched with icon-text-fit. We've added the 1px padding before, but didn't scale it accordingly when we are resizing the icon when it is stretched to fit the text. Adjusts the code to match the logic in GL JS.
Copy link
Contributor

@alexshalamov alexshalamov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kkaefer thanks for backporting!

@kkaefer kkaefer merged commit 2187980 into master Oct 14, 2019
@kkaefer kkaefer deleted the fix-icon-text-fit branch October 14, 2019 16:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Core The cross-platform C++ core, aka mbgl text rendering
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants