diff options
author | Rainer Hurling <rhurlin@FreeBSD.org> | 2020-12-13 08:20:12 +0000 |
---|---|---|
committer | Rainer Hurling <rhurlin@FreeBSD.org> | 2020-12-13 08:20:12 +0000 |
commit | 9b38b9dbfa508fced72b4d43b47ecdba8cc5152a (patch) | |
tree | 3050e1db4d0ed674119d15544d53476d9ce04930 /textproc/cast2gif | |
parent | b742dceafb463f9cb57db476d1499ff120bb07d5 (diff) | |
download | ports-9b38b9dbfa508fced72b4d43b47ecdba8cc5152a.tar.gz ports-9b38b9dbfa508fced72b4d43b47ecdba8cc5152a.zip |
Notes
Diffstat (limited to 'textproc/cast2gif')
-rw-r--r-- | textproc/cast2gif/files/patch-cargo-crates_font-kit-0.6.0_src_loaders_freetype.rs | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/textproc/cast2gif/files/patch-cargo-crates_font-kit-0.6.0_src_loaders_freetype.rs b/textproc/cast2gif/files/patch-cargo-crates_font-kit-0.6.0_src_loaders_freetype.rs new file mode 100644 index 000000000000..81874969d8c8 --- /dev/null +++ b/textproc/cast2gif/files/patch-cargo-crates_font-kit-0.6.0_src_loaders_freetype.rs @@ -0,0 +1,34 @@ +--- cargo-crates/font-kit-0.6.0/src/loaders/freetype.rs.orig 2020-04-14 20:53:09 UTC ++++ cargo-crates/font-kit-0.6.0/src/loaders/freetype.rs +@@ -15,7 +15,9 @@ + + use byteorder::{BigEndian, ReadBytesExt}; + use freetype::freetype::{FT_Byte, FT_Done_Face, FT_Error, FT_Face, FT_FACE_FLAG_FIXED_WIDTH}; +-use freetype::freetype::{FT_Fixed, FT_Get_Char_Index, FT_Get_Name_Index, FT_Get_Postscript_Name}; ++use freetype::freetype::{ ++ FT_Fixed, FT_Get_Char_Index, FT_Get_Name_Index, FT_Get_Postscript_Name, FT_Pos, ++}; + use freetype::freetype::{FT_Get_Sfnt_Table, FT_Init_FreeType, FT_LcdFilter, FT_Library}; + use freetype::freetype::{FT_Library_SetLcdFilter, FT_Load_Glyph, FT_LOAD_DEFAULT}; + use freetype::freetype::{FT_Load_Sfnt_Table, FT_Long, FT_Matrix, FT_New_Memory_Face}; +@@ -801,14 +803,14 @@ impl Font { + let vector = transform.vector.f32_to_ft_fixed_26_6(); + + let mut delta = FT_Vector { +- x: vector.x() as i64, +- y: -vector.y() as i64, ++ x: vector.x() as FT_Pos, ++ y: -vector.y() as FT_Pos, + }; + let mut ft_shape = FT_Matrix { +- xx: matrix.x() as i64, +- xy: matrix.y() as i64, +- yx: matrix.z() as i64, +- yy: matrix.w() as i64, ++ xx: matrix.x() as FT_Fixed, ++ xy: matrix.y() as FT_Fixed, ++ yx: matrix.z() as FT_Fixed, ++ yy: matrix.w() as FT_Fixed, + }; + FT_Set_Transform(self.freetype_face, &mut ft_shape, &mut delta); + |