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

fix-kern #658

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

fix-kern #658

wants to merge 1 commit into from

Conversation

msokalski
Copy link

Make NVGglyphPosition::x values filled by nvgTextGlyphPositions() correctly adjusted by kerning.
So calling nvgText() with these coordinates on any sub-string will result in exactly same glyph placements,

Problem occurs when we need to draw text in multiple chunks, eg: to change a fill color for selected part of a text.
Before this fix, drawing every chunk with nvgText() would suffer from not being adjusted by kerning with the last glyph of the previous chunk.

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.

1 participant