shithub: freetype+ttf2subf

Download patch

ref: ff82747e6d42faa3b11b6acec8976a2542e5eff8
parent: 351fc4b4a4e6ac8036df7248ab6c24129ca13269
author: Werner Lemberg <[email protected]>
date: Tue Mar 29 05:19:22 EDT 2016

* src/base/ftadvance.c (FT_Get_Advances): Fix invalid left shift.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2016-03-29  Werner Lemberg  <[email protected]>
 
+	* src/base/ftadvance.c (FT_Get_Advances): Fix invalid left shift.
+
+2016-03-29  Werner Lemberg  <[email protected]>
+
 	[pfr] Fix binary search (#47514).
 
 	* src/pfr/pfrsbit.c (pfr_lookup_bitmap_data): Handle border
--- a/src/base/ftadvanc.c
+++ b/src/base/ftadvanc.c
@@ -159,8 +159,8 @@
 
       /* scale from 26.6 to 16.16 */
       padvances[nn] = ( flags & FT_LOAD_VERTICAL_LAYOUT )
-                      ? face->glyph->advance.y << 10
-                      : face->glyph->advance.x << 10;
+                      ? face->glyph->advance.y * 1024
+                      : face->glyph->advance.x * 1024;
     }
 
     return error;