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

Fix DirectWrite raster bounds #18

Merged
merged 1 commit into from Jan 22, 2019
Merged

Conversation

@fkaa
Copy link
Contributor

fkaa commented Dec 4, 2018

Fixes #15

let texture_width = texture_bounds.right - texture_bounds.left;
let texture_height = texture_bounds.bottom - texture_bounds.top;

Ok(Rect::new(Point2D::new(0, 0), Size2D::new(texture_width, texture_height).to_i32()))

This comment has been minimized.

@zacps

zacps Dec 5, 2018

Contributor

The point should be origin.round().cast::<i32>(), which will matter when https://github.com/pcwalton/font-kit/pull/19 is merged.

@pcwalton pcwalton merged commit f5fb12f into servo:master Jan 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.