-
Notifications
You must be signed in to change notification settings - Fork 77
Open
Labels
Milestone
Description
Describe the bug
When your use Graphics::set_transform to increase the scale, text rendering breaks (see image). Images drawn with Graphics::draw_subimage_tinted() do not seem to be effected by this bug.
To Reproduce
use quicksilver::{
geom::*,
graphics::{Color, VectorFont},
run, Graphics, Input, Result, Settings, Window,
};
fn main() {
run(
Settings {
title: "Font Example",
..Settings::default()
},
app,
);
}
async fn app(window: Window, mut gfx: Graphics, mut input: Input) -> Result<()> {
gfx.set_transform(Transform::scale((40, 40)));
let mut font = VectorFont::load("arialn.ttf").await?.to_renderer(&gfx, 12.0)?;
gfx.clear(Color::WHITE);
font.draw(
&mut gfx,
"Hello world!\nHello Quicksilver!",
Color::BLACK,
Vector::new(0.0, 10.0),
)?;
gfx.present(&window)?;
loop {
while let Some(_) = input.next_event().await {}
}
}- Environment: Manjaro
- Rust compiler version: stable latest
- Quicksilver version: 0.4.0-alpha0.4
