Skip to content

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