ref: 312d26a4915bcf7ca1e428f7bdf7ed631574dc13
parent: 396b11b840f84e8bff62f3c361d0b592e77ee703
author: Werner Lemberg <[email protected]>
date: Mon Dec 13 15:17:26 EST 2010
Fix parameter handling of `FT_Set_Renderer'. Reported by Kirill Tishin <[email protected]>. * src/base/ftobjs.c (FT_Set_Renderer): Increment `parameters'.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-12-13 Werner Lemberg <[email protected]>
+
+ Fix parameter handling of `FT_Set_Renderer'.
+ Reported by Kirill Tishin <[email protected]>.
+
+ * src/base/ftobjs.c (FT_Set_Renderer): Increment `parameters'.
+
2010-12-09 Werner Lemberg <[email protected]>
[cff] Allow `hlineto' and `vlineto' without arguments.
--- a/include/freetype/ftrender.h
+++ b/include/freetype/ftrender.h
@@ -212,6 +212,14 @@
/* */
/* This doesn't change the current renderer for other formats. */
/* */
+ /* Currently, only the B/W renderer, if compiled with */
+ /* FT_RASTER_OPTION_ANTI_ALIASING (providing a 5-levels */
+ /* anti-aliasing mode; this option must be set directly in */
+ /* `ftraster.c' and is undefined by default) accepts a single tag */
+ /* `pal5' to set its gray palette as a character string with */
+ /* 5~elements. Consequently, the third and fourth argument are zero */
+ /* normally. */
+ /* */
FT_EXPORT( FT_Error )
FT_Set_Renderer( FT_Library library,
FT_Renderer renderer,
--- a/src/base/ftobjs.c
+++ b/src/base/ftobjs.c
@@ -3887,6 +3887,7 @@
error = set_mode( renderer, parameters->tag, parameters->data );
if ( error )
break;
+ parameters++;
}
}