ref: 75ad4b83652737d3323ccddfb322accb6cb90676
parent: 4919dc7cf81eb95737c8d8441303d137dc3a0cd6
author: Werner Lemberg <[email protected]>
date: Wed May 28 02:10:57 EDT 2003
* src/base/ftglyph.c (FT_Glyph_To_Bitmap): Activate code for handling `origin'.
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,9 @@
* src/pshinter/pshalgo3.c (psh3_glyph_compute_extrema): Skip
contours with only a single point to avoid segfault.
+ * src/base/ftglyph.c (FT_Glyph_To_Bitmap): Activate code for
+ handling `origin'.
+
2003-05-24 Werner Lemberg <[email protected]>
* src/autohint/ahtypes.h (AH_OPTION_NO_STRONG_INTERPOLATION):
--- a/include/freetype/ftglyph.h
+++ b/include/freetype/ftglyph.h
@@ -4,7 +4,7 @@
/* */
/* FreeType convenience functions to handle glyphs (specification). */
/* */
-/* Copyright 1996-2001 by */
+/* Copyright 1996-2001, 2002, 2003 by */
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
/* */
/* This file is part of the FreeType project, and may only be used, */
@@ -391,8 +391,7 @@
/* */
/* <Note> */
/* The glyph image is translated with the `origin' vector before */
- /* rendering. In case of error, it it translated back to its */
- /* original position and the glyph is left untouched. */
+ /* rendering. */
/* */
/* The first parameter is a pointer to a FT_Glyph handle, that will */
/* be replaced by this function. Typically, you would use (omitting */
--- a/src/base/ftglyph.c
+++ b/src/base/ftglyph.c
@@ -592,7 +592,7 @@
clazz = glyph->clazz;
- /* when called with a bitmap glyph, do nothing and return succesfully */
+ /* when called with a bitmap glyph, do nothing and return successfully */
if ( clazz == &ft_bitmap_glyph_class )
goto Exit;
@@ -609,7 +609,7 @@
if ( error )
goto Exit;
-#if 0
+#if 1
/* if `origin' is set, translate the glyph image */
if ( origin )
FT_Glyph_Transform( glyph, 0, origin );
@@ -622,7 +622,7 @@
if ( !error )
error = FT_Render_Glyph_Internal( glyph->library, &dummy, render_mode );
-#if 0
+#if 1
if ( !destroy && origin )
{
FT_Vector v;