error[E0308]: mismatched types
--> /home/matias/.cargo/registry/src/github.com-1ecc6299db9ec823/font-kit-0.1.0/src/loaders/freetype.rs:130:39
|
130 | font_data.len() as i64,
| ^^^^^^^^^^^^^^^^^^^^^^ expected i32, found i64
error[E0308]: mismatched types
--> /home/matias/.cargo/registry/src/github.com-1ecc6299db9ec823/font-kit-0.1.0/src/loaders/freetype.rs:157:39
|
157 | mmap.len() as i64,
| ^^^^^^^^^^^^^^^^^ expected i32, found i64
error[E0308]: mismatched types
--> /home/matias/.cargo/registry/src/github.com-1ecc6299db9ec823/font-kit-0.1.0/src/loaders/freetype.rs:194:61
|
194 | font_data.len() as u64,
| ^^^^^^^^^^^^^^^^^^^^^^ expected u32, found u64
error[E0308]: mismatched types
--> /home/matias/.cargo/registry/src/github.com-1ecc6299db9ec823/font-kit-0.1.0/src/loaders/freetype.rs:196:61
|
196 | CHUNK_SIZE as u64);
| ^^^^^^^^^^^^^^^^^ expected u32, found u64
error[E0308]: mismatched types
--> /home/matias/.cargo/registry/src/github.com-1ecc6299db9ec823/font-kit-0.1.0/src/loaders/freetype.rs:197:25
|
197 | if n_read < CHUNK_SIZE as u64 {
| ^^^^^^^^^^^^^^^^^ expected u32, found u64
error[E0308]: mismatched types
--> /home/matias/.cargo/registry/src/github.com-1ecc6299db9ec823/font-kit-0.1.0/src/loaders/freetype.rs:219:39
|
219 | font_data.len() as i64,
| ^^^^^^^^^^^^^^^^^^^^^^ expected i32, found i64
error[E0308]: mismatched types
--> /home/matias/.cargo/registry/src/github.com-1ecc6299db9ec823/font-kit-0.1.0/src/loaders/freetype.rs:243:39
|
243 | mmap.len() as i64,
| ^^^^^^^^^^^^^^^^^ expected i32, found i64
error[E0308]: mismatched types
--> /home/matias/.cargo/registry/src/github.com-1ecc6299db9ec823/font-kit-0.1.0/src/loaders/freetype.rs:325:48
|
325 | (*self.freetype_face).face_flags & (FT_FACE_FLAG_FIXED_WIDTH as i64) != 0
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected i32, found i64
error[E0277]: no implementation for `i32 & i64`
--> /home/matias/.cargo/registry/src/github.com-1ecc6299db9ec823/font-kit-0.1.0/src/loaders/freetype.rs:325:46
|
325 | (*self.freetype_face).face_flags & (FT_FACE_FLAG_FIXED_WIDTH as i64) != 0
| ^ no implementation for `i32 & i64`
|
= help: the trait `std::ops::BitAnd<i64>` is not implemented for `i32`
error[E0308]: mismatched types
--> /home/matias/.cargo/registry/src/github.com-1ecc6299db9ec823/font-kit-0.1.0/src/loaders/freetype.rs:337:59
|
337 | _ if ((*self.freetype_face).style_flags & (FT_STYLE_FLAG_ITALIC) as i64) != 0 => {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected i32, found i64
error[E0277]: no implementation for `i32 & i64`
--> /home/matias/.cargo/registry/src/github.com-1ecc6299db9ec823/font-kit-0.1.0/src/loaders/freetype.rs:337:57
|
337 | _ if ((*self.freetype_face).style_flags & (FT_STYLE_FLAG_ITALIC) as i64) != 0 => {
| ^ no implementation for `i32 & i64`
|
= help: the trait `std::ops::BitAnd<i64>` is not implemented for `i32`
error[E0308]: mismatched types
--> /home/matias/.cargo/registry/src/github.com-1ecc6299db9ec823/font-kit-0.1.0/src/loaders/freetype.rs:401:45
|
401 | f32_to_ft_fixed_26_6(size),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected i32, found i64
error[E0308]: mismatched types
--> /home/matias/.cargo/registry/src/github.com-1ecc6299db9ec823/font-kit-0.1.0/src/loaders/freetype.rs:523:72
|
523 | let mut point_position = Point2D::new(ft_fixed_26_6_to_f32(point_position.x),
| ^^^^^^^^^^^^^^^^ expected i64, found i32
help: you can cast an `i32` to `i64`, which will sign-extend the source value
|
523 | let mut point_position = Point2D::new(ft_fixed_26_6_to_f32(point_position.x.into()),
| ^^^^^^^^^^^^^^^^^^^^^^^
error[E0308]: mismatched types
--> /home/matias/.cargo/registry/src/github.com-1ecc6299db9ec823/font-kit-0.1.0/src/loaders/freetype.rs:524:72
|
524 | ft_fixed_26_6_to_f32(point_position.y));
| ^^^^^^^^^^^^^^^^ expected i64, found i32
help: you can cast an `i32` to `i64`, which will sign-extend the source value
|
524 | ft_fixed_26_6_to_f32(point_position.y.into()));
| ^^^^^^^^^^^^^^^^^^^^^^^
error[E0308]: mismatched types
--> /home/matias/.cargo/registry/src/github.com-1ecc6299db9ec823/font-kit-0.1.0/src/loaders/freetype.rs:543:60
|
543 | Ok(Rect::new(Point2D::new(ft_fixed_26_6_to_f32(metrics.horiBearingX),
| ^^^^^^^^^^^^^^^^^^^^ expected i64, found i32
help: you can cast an `i32` to `i64`, which will sign-extend the source value
|
543 | Ok(Rect::new(Point2D::new(ft_fixed_26_6_to_f32(metrics.horiBearingX.into()),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0308]: mismatched types
--> /home/matias/.cargo/registry/src/github.com-1ecc6299db9ec823/font-kit-0.1.0/src/loaders/freetype.rs:544:60
|
544 | ft_fixed_26_6_to_f32(metrics.horiBearingY - metrics.height)),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected i64, found i32
help: you can cast an `i32` to `i64`, which will sign-extend the source value
|
544 | ft_fixed_26_6_to_f32((metrics.horiBearingY - metrics.height).into())),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0308]: mismatched types
--> /home/matias/.cargo/registry/src/github.com-1ecc6299db9ec823/font-kit-0.1.0/src/loaders/freetype.rs:545:59
|
545 | Size2D::new(ft_fixed_26_6_to_f32(metrics.width),
| ^^^^^^^^^^^^^ expected i64, found i32
help: you can cast an `i32` to `i64`, which will sign-extend the source value
|
545 | Size2D::new(ft_fixed_26_6_to_f32(metrics.width.into()),
| ^^^^^^^^^^^^^^^^^^^^
error[E0308]: mismatched types
--> /home/matias/.cargo/registry/src/github.com-1ecc6299db9ec823/font-kit-0.1.0/src/loaders/freetype.rs:546:59
|
546 | ft_fixed_26_6_to_f32(metrics.height))))
| ^^^^^^^^^^^^^^ expected i64, found i32
help: you can cast an `i32` to `i64`, which will sign-extend the source value
|
546 | ft_fixed_26_6_to_f32(metrics.height.into()))))
| ^^^^^^^^^^^^^^^^^^^^^
error[E0308]: mismatched types
--> /home/matias/.cargo/registry/src/github.com-1ecc6299db9ec823/font-kit-0.1.0/src/loaders/freetype.rs:561:51
|
561 | Ok(Vector2D::new(ft_fixed_26_6_to_f32(advance.x), ft_fixed_26_6_to_f32(advance.y)))
| ^^^^^^^^^ expected i64, found i32
help: you can cast an `i32` to `i64`, which will sign-extend the source value
|
561 | Ok(Vector2D::new(ft_fixed_26_6_to_f32(advance.x.into()), ft_fixed_26_6_to_f32(advance.y)))
| ^^^^^^^^^^^^^^^^
error[E0308]: mismatched types
--> /home/matias/.cargo/registry/src/github.com-1ecc6299db9ec823/font-kit-0.1.0/src/loaders/freetype.rs:561:84
|
561 | Ok(Vector2D::new(ft_fixed_26_6_to_f32(advance.x), ft_fixed_26_6_to_f32(advance.y)))
| ^^^^^^^^^ expected i64, found i32
help: you can cast an `i32` to `i64`, which will sign-extend the source value
|
561 | Ok(Vector2D::new(ft_fixed_26_6_to_f32(advance.x), ft_fixed_26_6_to_f32(advance.y.into())))
| ^^^^^^^^^^^^^^^^
error[E0308]: mismatched types
--> /home/matias/.cargo/registry/src/github.com-1ecc6299db9ec823/font-kit-0.1.0/src/loaders/freetype.rs:628:41
|
628 | buffer.len() as i64) == 0 {
| ^^^^^^^^^^^^^^^^^^^ expected i32, found i64
error[E0308]: mismatched types
--> /home/matias/.cargo/registry/src/github.com-1ecc6299db9ec823/font-kit-0.1.0/src/loaders/freetype.rs:716:20
|
716 | x: f32_to_ft_fixed_26_6(origin.x),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected i32, found i64
error[E0308]: mismatched types
--> /home/matias/.cargo/registry/src/github.com-1ecc6299db9ec823/font-kit-0.1.0/src/loaders/freetype.rs:717:20
|
717 | y: f32_to_ft_fixed_26_6(origin.y),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected i32, found i64
error[E0308]: mismatched types
--> /home/matias/.cargo/registry/src/github.com-1ecc6299db9ec823/font-kit-0.1.0/src/loaders/freetype.rs:722:41
|
722 | f32_to_ft_fixed_26_6(point_size),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected i32, found i64
error[E0308]: mismatched types
--> /home/matias/.cargo/registry/src/github.com-1ecc6299db9ec823/font-kit-0.1.0/src/loaders/freetype.rs:981:43
|
981 | assert_eq!(FT_Set_Char_Size(face, ((*face).units_per_EM as i64) << 6, 0, 0, 0), 0);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected i32, found i64