shithub: freetype+ttf2subf

Download patch

ref: 6e253b26b2889cfff817b966c95e112bda050298
parent: a50c39aa8ec9dd90ae8f847e2e6ce3c5bfd36c3e
author: Werner Lemberg <[email protected]>
date: Sat May 29 07:05:41 EDT 2021

Typos in previous commit.

git/fs: mount .git/fs: mount/attach disallowed
--- a/src/cid/cidload.c
+++ b/src/cid/cidload.c
@@ -758,7 +758,7 @@
     error = FT_Err_Ok;
 
   Exit:
-    *data_written = FT_ULong( d - data );
+    *data_written = (FT_ULong)( d - data );
     return error;
   }
 
--- a/src/sdf/ftsdf.c
+++ b/src/sdf/ftsdf.c
@@ -3308,9 +3308,9 @@
               dist.distance = square_root( dist.distance );
 
             if ( internal_params.flip_y )
-              index = FT_UInt( y * width + x );
+              index = (FT_UInt)( y * width + x );
             else
-              index = FT_UInt( ( rows - y - 1 ) * width + x );
+              index = (FT_UInt)( ( rows - y - 1 ) * width + x );
 
             /* check whether the pixel is set or not */
             if ( dists[index].sign == 0 )