diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b363d73..19586e3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,7 +28,7 @@ jobs: - name: Install run: | echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | sudo debconf-set-selections; - sudo apt-get install ttf-mscorefonts-installer; + sudo apt-get install ttf-mscorefonts-installer libfontconfig-dev; - name: Build run: cargo build - name: Tests diff --git a/src/canvas.rs b/src/canvas.rs index 896ebe1..12590fe 100644 --- a/src/canvas.rs +++ b/src/canvas.rs @@ -107,7 +107,6 @@ impl Canvas { src_stride >= src_size.x() as usize * src_format.bytes_per_pixel() as usize, "src_stride must be >= than src_size.x()" ); - let dst_rect = RectI::new(dst_point, src_size); let dst_rect = dst_rect.intersection(RectI::new(Vector2I::default(), self.size)); diff --git a/tests/tests.rs b/tests/tests.rs index 25fe61c..50bbef2 100644 --- a/tests/tests.rs +++ b/tests/tests.rs @@ -847,7 +847,7 @@ pub fn rasterize_glyph_with_full_hinting_subpixel() { ) .unwrap(); check_L_shape(&canvas); - + // Test with larger canvas let mut canvas = Canvas::new(Vector2I::new(100, 100), Format::Rgb24); font.rasterize_glyph( @@ -862,7 +862,6 @@ pub fn rasterize_glyph_with_full_hinting_subpixel() { check_L_shape(&canvas); } - #[cfg(all(feature = "source", target_family = "windows"))] #[test] pub fn rasterize_glyph() { @@ -943,7 +942,6 @@ pub fn rasterize_empty_glyph_on_empty_canvas() { .unwrap(); } - #[cfg(feature = "source")] #[test] pub fn font_transform() {