Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draw consecutive textBackgroundColor in style with one draw call #3698

Merged

Conversation

stefanhayden
Copy link
Member

@stefanhayden stefanhayden commented Feb 16, 2017

This update changes how _renderTextLinesBackground draws the rects behind characters. Instead of 1 rect per character it now will draw 1 rect for each continuous block of color.

This avoid thin gaps that sometimes show off on certain combination of zoom and scale.

@asturur asturur changed the title do one draw for characters that all have the same textBackgroundColor Draw consecutive textBackgroundColor in style with one draw call Feb 16, 2017
@asturur asturur merged commit eb6815a into fabricjs:master Feb 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants