shithub: freetype+ttf2subf

Download patch

ref: dd26e3d07c5b650fb2b92c86ee003e52d33259ec
parent: e1ee5476a4345f8531d03bdbd131337c2534f864
author: Werner Lemberg <[email protected]>
date: Thu Nov 10 07:03:32 EST 2016

Fix `lcd_weights' array size.

* include/freetype/internal/ftobjs.h (FT_LibraryRec): Do it.

Reported by Nikolaus.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2016-11-10  Werner Lemberg  <[email protected]>
+
+	Fix `lcd_weights' array size.
+
+	* include/freetype/internal/ftobjs.h (FT_LibraryRec): Do it.
+
+	Reported by Nikolaus.
+
 2016-11-06  Werner Lemberg  <[email protected]>
 
 	* src/base/ftobjs.c (FT_Render_Glyph_Internal): Fix tracing.
--- a/include/freetype/internal/ftobjs.h
+++ b/include/freetype/internal/ftobjs.h
@@ -875,7 +875,7 @@
 #ifdef FT_CONFIG_OPTION_SUBPIXEL_RENDERING
     FT_LcdFilter             lcd_filter;
     FT_Int                   lcd_extra;        /* number of extra pixels */
-    FT_Byte                  lcd_weights[7];   /* filter weights, if any */
+    FT_Byte                  lcd_weights[5];   /* filter weights, if any */
     FT_Bitmap_LcdFilterFunc  lcd_filter_func;  /* filtering callback     */
 #endif