-
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 line metrics #165
Comments
With the returned So if you know your cursor's section-byte index you can find a position to draw it. You can also infer various line metrics from same- I wouldn't normally imagine moving the layout around to make room for a cursor, don't they usually just go between the glyphs? Custom inline non-glyph content, like a arbitrary rect, is not currently supported but I imagine could be added. |
I guess this is just aggregating glyph metrics like ascent and descent across |
It would be nice to be able to retrieve something similar to DirectWrite's
DWRITE_LINE_METRICS
fromglyph_brush_layout
in addition to the actual glyph positions. This would allow us to more easily position inline content within the text, for example, a cursor for a text entry box. Right now, any inline content requires modifying the returned layout to make room for your cursor, and positioning the cursor for text input vertically is impossible.The text was updated successfully, but these errors were encountered: