ref: 0bf381f7ab9d980da0e53d9211c63dc21ae6cb82
parent: dc268f24bada48cf13a5c29174c71791083d1102
author: Werner Lemberg <[email protected]>
date: Sun Oct 15 17:59:58 EDT 2000
Make ftsynth.c work again. Renamed FT_*_Outline to FT_Outline_*
--- a/include/freetype/ftsynth.h
+++ b/include/freetype/ftsynth.h
@@ -48,13 +48,13 @@
/* This code is completely experimental -- use with care! */
/* It will probably be completely rewritten in the future */
/* or even integrated into the library. */
- FT_EXPORT_DEF( FT_Error ) FT_Embolden_Outline( FT_Face original,
- FT_Outline* outline,
- FT_Pos* advance );
+ FT_EXPORT_DEF( FT_Error ) FT_Outline_Embolden( FT_GlyphSlot original,
+ FT_Outline* outline,
+ FT_Pos* advance );
- FT_EXPORT_DEF( FT_Error ) FT_Oblique_Outline( FT_Face original,
- FT_Outline* outline,
- FT_Pos* advance );
+ FT_EXPORT_DEF( FT_Error ) FT_Outline_Oblique( FT_GlyphSlot original,
+ FT_Outline* outline,
+ FT_Pos* advance );
#ifdef __cplusplus
--- a/src/base/ftsynth.c
+++ b/src/base/ftsynth.c
@@ -16,6 +16,8 @@
/***************************************************************************/
+#include <freetype/internal/ftobjs.h>
+#include <freetype/ftoutln.h>
#include <freetype/ftsynth.h>
@@ -30,7 +32,7 @@
/*************************************************************************/
/*************************************************************************/
- FT_EXPORT_DEF( FT_Error ) FT_Oblique_Outline( FT_GlyphSlot original,
+ FT_EXPORT_DEF( FT_Error ) FT_Outline_Oblique( FT_GlyphSlot original,
FT_Outline* outline,
FT_Pos* advance )
{
@@ -38,7 +40,7 @@
FT_UNUSED( original );
/* we don't touch the advance width */
- FT_UNUSED(advance);
+ FT_UNUSED( advance );
@@ -45,13 +47,13 @@
/* For italic, simply apply a shear transform, with an angle */
/* of about 12 degrees. */
- transform.xx = 0x10000;
- transform.yx = 0x00000;
+ transform.xx = 0x10000L;
+ transform.yx = 0x00000L;
- transform.xy = 0x06000;
- transform.yy = 0x10000;
+ transform.xy = 0x06000L;
+ transform.yy = 0x10000L;
- FT_Transform_Outline( outline, &transform );
+ FT_Outline_Transform( outline, &transform );
return 0;
}
@@ -288,7 +290,7 @@
}
- FT_EXPORT_FUNC(FT_Error) FT_Embolden_Outline( FT_GlyphSlot original,
+ FT_EXPORT_FUNC(FT_Error) FT_Outline_Embolden( FT_GlyphSlot original,
FT_Outline* outline,
FT_Pos* advance )
{