-
-
Save usagi/cf130471216f05aaaf3eed93bd78a462 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
error[E0308]: mismatched types | |
--> | |
C:\Users\usagi\.cargo\git\checkouts\azul-f3b1e21a5e685cad\17b76b0\cargo\azul-text-layout\../../azul-text-layout\text_shaping.rs:309:73 | |
| | |
309 | let error = FT_New_Memory_Face(ft_library, font_bytes.as_ptr(), buf_len, font_index as i64, &mut ft_face); | |
| ^^^^^^^ expected `i32`, found `i64` | |
| | |
help: you can convert an `i64` to `i32` and panic if the converted value wouldn't fit | |
| | |
309 | let error = FT_New_Memory_Face(ft_library, font_bytes.as_ptr(), buf_len.try_into().unwrap(), font_index as i64, &mut | |
ft_face); | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
error[E0308]: mismatched types | |
--> | |
C:\Users\usagi\.cargo\git\checkouts\azul-f3b1e21a5e685cad\17b76b0\cargo\azul-text-layout\../../azul-text-layout\text_shaping.rs:309:82 | |
| | |
309 | let error = FT_New_Memory_Face(ft_library, font_bytes.as_ptr(), buf_len, font_index as i64, &mut ft_face); | |
| ^^^^^^^^^^^^^^^^^ expected `i32`, found `i64` | |
| | |
help: you can convert an `i64` to `i32` and panic if the converted value wouldn't fit | |
| | |
309 | let error = FT_New_Memory_Face(ft_library, font_bytes.as_ptr(), buf_len, (font_index as i64).try_into().unwrap(), &mut | |
ft_face); | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
error[E0308]: mismatched types | |
--> | |
C:\Users\usagi\.cargo\git\checkouts\azul-f3b1e21a5e685cad\17b76b0\cargo\azul-text-layout\../../azul-text-layout\text_shaping.rs:318:50 | |
| | |
318 | let error = FT_Set_Char_Size(ft_face, 0, FAKE_FONT_SIZE, DPI, DPI); | |
| ^^^^^^^^^^^^^^ expected `i32`, found `i64` | |
| | |
help: you can convert an `i64` to `i32` and panic if the converted value wouldn't fit | |
| | |
318 | let error = FT_Set_Char_Size(ft_face, 0, FAKE_FONT_SIZE.try_into().unwrap(), DPI, DPI); | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
error[E0308]: mismatched types | |
--> | |
C:\Users\usagi\.cargo\git\checkouts\azul-f3b1e21a5e685cad\17b76b0\cargo\azul-text-layout\../../azul-text-layout\text_shaping.rs:333:22 | |
| | |
333 | x_scale: metrics.x_scale, | |
| ^^^^^^^^^^^^^^^ expected `i64`, found `i32` | |
error[E0308]: mismatched types | |
--> | |
C:\Users\usagi\.cargo\git\checkouts\azul-f3b1e21a5e685cad\17b76b0\cargo\azul-text-layout\../../azul-text-layout\text_shaping.rs:334:22 | |
| | |
334 | y_scale: metrics.y_scale, | |
| ^^^^^^^^^^^^^^^ expected `i64`, found `i32` | |
error[E0308]: mismatched types | |
--> | |
C:\Users\usagi\.cargo\git\checkouts\azul-f3b1e21a5e685cad\17b76b0\cargo\azul-text-layout\../../azul-text-layout\text_shaping.rs:335:23 | |
| | |
335 | ascender: metrics.ascender, | |
| ^^^^^^^^^^^^^^^^ expected `i64`, found `i32` | |
error[E0308]: mismatched types | |
--> | |
C:\Users\usagi\.cargo\git\checkouts\azul-f3b1e21a5e685cad\17b76b0\cargo\azul-text-layout\../../azul-text-layout\text_shaping.rs:336:24 | |
| | |
336 | descender: metrics.descender, | |
| ^^^^^^^^^^^^^^^^^ expected `i64`, found `i32` | |
error[E0308]: mismatched types | |
--> | |
C:\Users\usagi\.cargo\git\checkouts\azul-f3b1e21a5e685cad\17b76b0\cargo\azul-text-layout\../../azul-text-layout\text_shaping.rs:337:21 | |
| | |
337 | height: metrics.height, | |
| ^^^^^^^^^^^^^^ expected `i64`, found `i32` | |
error[E0308]: mismatched types | |
--> | |
C:\Users\usagi\.cargo\git\checkouts\azul-f3b1e21a5e685cad\17b76b0\cargo\azul-text-layout\../../azul-text-layout\text_shaping.rs:338:26 | |
| | |
338 | max_advance: metrics.max_advance, | |
| ^^^^^^^^^^^^^^^^^^^ expected `i64`, found `i32` | |
error: aborting due to 9 previous errors | |
For more information about this error, try `rustc --explain E0308`. | |
error | |
: could not compile `azul-text-layout`. | |
To learn more, run the command again with --verbose. | |
warning: build failed, waiting for other jobs to finish... | |
error | |
: build failed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment