Skip to content

Commit ea5734e

Browse files
authored
Add libfontconfig-dev dependency for version bump to Ubuntu 24.04 (#255)
* Add libfontconfig-dev dependency for version bump to Ubuntu 24.04 * Fix formatting errors. * Fix formatting
1 parent 32571e9 commit ea5734e

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Install
2929
run: |
3030
echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | sudo debconf-set-selections;
31-
sudo apt-get install ttf-mscorefonts-installer;
31+
sudo apt-get install ttf-mscorefonts-installer libfontconfig-dev;
3232
- name: Build
3333
run: cargo build
3434
- name: Tests

src/canvas.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ impl Canvas {
107107
src_stride >= src_size.x() as usize * src_format.bytes_per_pixel() as usize,
108108
"src_stride must be >= than src_size.x()"
109109
);
110-
111110

112111
let dst_rect = RectI::new(dst_point, src_size);
113112
let dst_rect = dst_rect.intersection(RectI::new(Vector2I::default(), self.size));

tests/tests.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -847,7 +847,7 @@ pub fn rasterize_glyph_with_full_hinting_subpixel() {
847847
)
848848
.unwrap();
849849
check_L_shape(&canvas);
850-
850+
851851
// Test with larger canvas
852852
let mut canvas = Canvas::new(Vector2I::new(100, 100), Format::Rgb24);
853853
font.rasterize_glyph(
@@ -862,7 +862,6 @@ pub fn rasterize_glyph_with_full_hinting_subpixel() {
862862
check_L_shape(&canvas);
863863
}
864864

865-
866865
#[cfg(all(feature = "source", target_family = "windows"))]
867866
#[test]
868867
pub fn rasterize_glyph() {
@@ -943,7 +942,6 @@ pub fn rasterize_empty_glyph_on_empty_canvas() {
943942
.unwrap();
944943
}
945944

946-
947945
#[cfg(feature = "source")]
948946
#[test]
949947
pub fn font_transform() {

0 commit comments

Comments
 (0)