-
Notifications
You must be signed in to change notification settings - Fork 52
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
glyph_brush_layout: Options for Text Tracking and Line Height #132
Comments
Yes I think it would be nice to support this. Perhaps having configurable tracking & line-height adjustment values per "section". pub struct SectionText<'a> {
pub text: &'a str,
pub scale: PxScale,
pub font_id: FontId,
pub tracking_adjust: f32, // new
pub line_height_adjust: f32, // new
} Would something like that work? |
Yes, that would be great! Ideally, |
I'd like them to behave as least surprisingly as possible. GIMP calls these "letter spacing" & "line spacing", they both seem to be floating point pixel values. So line-spacing 1.5 means
|
Is there any update on this? I was looking for line spacing adjustment in bevy which uses this library I believe. |
I believe the next step here would be a concrete PR proposal. |
Is there a chance that the layouting could allow adjusting the tracking (changing glyph spacing after kerning) and line height?
I guess I can try adjusting those by scaling X/Y of the glyph positions after layouting, but I'm afraid that it might break the layout in some way (for example if there are some glyphs that should stick together, like combining characters).
The text was updated successfully, but these errors were encountered: