Skip to content

Commit

Permalink
Add libfontconfig-dev dependency for version bump to Ubuntu 24.04 (#255)
Browse files Browse the repository at this point in the history
* Add libfontconfig-dev dependency for version bump to Ubuntu 24.04

* Fix formatting errors.

* Fix formatting
  • Loading branch information
lte678 authored Oct 12, 2024
1 parent 32571e9 commit ea5734e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion src/canvas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
4 changes: 1 addition & 3 deletions tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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() {
Expand Down Expand Up @@ -943,7 +942,6 @@ pub fn rasterize_empty_glyph_on_empty_canvas() {
.unwrap();
}


#[cfg(feature = "source")]
#[test]
pub fn font_transform() {
Expand Down

0 comments on commit ea5734e

Please sign in to comment.