You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to use rusttype for font-rendering instead of font-kit. Its API provides a set of points for the specified font render, for now I made it work via dt.fill_rect(x, y, 1., 1., color, &opts), but I guess there is a better way of achieving this. I don't want to manually edit the pixel buffer, because there will be no anti-aliasing.
The text was updated successfully, but these errors were encountered:
That being said, this is still going to be awkward. Overall, the text rendering in raqote needs a rework. My grand plan is to move the font rendering code in https://github.com/servo/webrender/tree/master/webrender/src/platform to a separate crate and use that for caching a drawing glyphs. As part of this, it should be possible to add support for a pure rust text backend as well.
I'd like to use rusttype for font-rendering instead of font-kit. Its API provides a set of points for the specified font render, for now I made it work via
dt.fill_rect(x, y, 1., 1., color, &opts)
, but I guess there is a better way of achieving this. I don't want to manually edit the pixel buffer, because there will be no anti-aliasing.The text was updated successfully, but these errors were encountered: