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

Omit whitespace line trailing glyphs #168

Closed
wants to merge 1 commit into from

Conversation

alexheretic
Copy link
Owner

Default layouts: Whitespace SectionGlyphs ignored for purposes of positioning are now also omitted entirely from GlyphPositioner::calculate_glyphs.

So right-aligned "foo b r" with ~3 char width bound, previously

foo|___
b_r|

Now

foo|
b_r|

Issues

This change may cause issues. Take a text editor use case. Previously the layout provide a position for all spaces, this could be used to render the cursor (like in #130 (comment)). By omitting the glyphs this would be much more painful. Not being able to reliably have these whitespace chars as glyphs could be an unwelcome change here.

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