Index: third_party/freetype/src/truetype/ttinterp.h |
diff --git a/third_party/freetype/src/truetype/ttinterp.h b/third_party/freetype/src/truetype/ttinterp.h |
index 333decc6a6d4c5b011047f984eb4a2aa8d237dca..32706d076047a04b2a6cc8dad56300a8e40788fd 100644 |
--- a/third_party/freetype/src/truetype/ttinterp.h |
+++ b/third_party/freetype/src/truetype/ttinterp.h |
@@ -4,7 +4,7 @@ |
/* */ |
/* TrueType bytecode interpreter (specification). */ |
/* */ |
-/* Copyright 1996-2007, 2010, 2012-2014 by */ |
+/* Copyright 1996-2015 by */ |
/* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
/* */ |
/* This file is part of the FreeType project, and may only be used, */ |
@@ -26,23 +26,6 @@ |
FT_BEGIN_HEADER |
-#ifndef TT_CONFIG_OPTION_STATIC_INTERPRETER /* indirect implementation */ |
- |
-#define EXEC_OP_ TT_ExecContext exc, |
-#define EXEC_OP TT_ExecContext exc |
-#define EXEC_ARG_ exc, |
-#define EXEC_ARG exc |
- |
-#else /* static implementation */ |
- |
-#define EXEC_OP_ /* void */ |
-#define EXEC_OP /* void */ |
-#define EXEC_ARG_ /* void */ |
-#define EXEC_ARG /* void */ |
- |
-#endif /* TT_CONFIG_OPTION_STATIC_INTERPRETER */ |
- |
- |
/*************************************************************************/ |
/* */ |
/* Rounding mode constants. */ |
@@ -67,33 +50,38 @@ FT_BEGIN_HEADER |
/* Rounding function */ |
typedef FT_F26Dot6 |
- (*TT_Round_Func)( EXEC_OP_ FT_F26Dot6 distance, |
- FT_F26Dot6 compensation ); |
+ (*TT_Round_Func)( TT_ExecContext exc, |
+ FT_F26Dot6 distance, |
+ FT_F26Dot6 compensation ); |
/* Point displacement along the freedom vector routine */ |
typedef void |
- (*TT_Move_Func)( EXEC_OP_ TT_GlyphZone zone, |
- FT_UShort point, |
- FT_F26Dot6 distance ); |
+ (*TT_Move_Func)( TT_ExecContext exc, |
+ TT_GlyphZone zone, |
+ FT_UShort point, |
+ FT_F26Dot6 distance ); |
/* Distance projection along one of the projection vectors */ |
typedef FT_F26Dot6 |
- (*TT_Project_Func)( EXEC_OP_ FT_Pos dx, |
- FT_Pos dy ); |
+ (*TT_Project_Func)( TT_ExecContext exc, |
+ FT_Pos dx, |
+ FT_Pos dy ); |
/* getting current ppem. Take care of non-square pixels if necessary */ |
typedef FT_Long |
- (*TT_Cur_Ppem_Func)( EXEC_OP ); |
+ (*TT_Cur_Ppem_Func)( TT_ExecContext exc ); |
/* reading a cvt value. Take care of non-square pixels if necessary */ |
typedef FT_F26Dot6 |
- (*TT_Get_CVT_Func)( EXEC_OP_ FT_ULong idx ); |
+ (*TT_Get_CVT_Func)( TT_ExecContext exc, |
+ FT_ULong idx ); |
/* setting or moving a cvt value. Take care of non-square pixels */ |
/* if necessary */ |
typedef void |
- (*TT_Set_CVT_Func)( EXEC_OP_ FT_ULong idx, |
- FT_F26Dot6 value ); |
+ (*TT_Set_CVT_Func)( TT_ExecContext exc, |
+ FT_ULong idx, |
+ FT_F26Dot6 value ); |
/*************************************************************************/ |
@@ -170,11 +158,11 @@ FT_BEGIN_HEADER |
FT_Long top; /* top of exec. stack */ |
- FT_UInt stackSize; /* size of exec. stack */ |
+ FT_Long stackSize; /* size of exec. stack */ |
FT_Long* stack; /* current exec. stack */ |
FT_Long args; |
- FT_UInt new_top; /* new top after exec. */ |
+ FT_Long new_top; /* new top after exec. */ |
TT_GlyphZoneRec zp0, /* zone records */ |
zp1, |
@@ -264,18 +252,22 @@ FT_BEGIN_HEADER |
#ifdef TT_CONFIG_OPTION_SUBPIXEL_HINTING |
TT_Round_Func func_round_sphn; /* subpixel rounding function */ |
- FT_Bool subpixel; /* Using subpixel hinting? */ |
+ FT_Bool subpixel_hinting; /* Using subpixel hinting? */ |
FT_Bool ignore_x_mode; /* Standard rendering mode for */ |
/* subpixel hinting. On if gray */ |
/* or subpixel hinting is on. */ |
- /* The following 4 aren't fully implemented but here for MS rasterizer */ |
+ /* The following 6 aren't fully implemented but here for MS rasterizer */ |
/* compatibility. */ |
FT_Bool compatible_widths; /* compatible widths? */ |
FT_Bool symmetrical_smoothing; /* symmetrical_smoothing? */ |
FT_Bool bgr; /* bgr instead of rgb? */ |
+ FT_Bool vertical_lcd; /* long side of LCD subpixel */ |
+ /* rectangles is horizontal */ |
FT_Bool subpixel_positioned; /* subpixel positioned */ |
/* (DirectWrite ClearType)? */ |
+ FT_Bool gray_cleartype; /* ClearType hinting but */ |
+ /* grayscale rendering */ |
FT_Int rasterizer_version; /* MS rasterizer version */ |
@@ -315,7 +307,7 @@ FT_BEGIN_HEADER |
FT_LOCAL( FT_Error ) |
Update_Max( FT_Memory memory, |
FT_ULong* size, |
- FT_Long multiplier, |
+ FT_ULong multiplier, |
void* _pbuff, |
FT_ULong new_max ); |
#endif /* TT_USE_BYTECODE_INTERPRETER */ |
@@ -339,6 +331,7 @@ FT_BEGIN_HEADER |
/* */ |
/* <Note> */ |
/* Only the glyph loader and debugger should call this function. */ |
+ /* (And right now only the glyph loader uses it.) */ |
/* */ |
FT_EXPORT( TT_ExecContext ) |
TT_New_Context( TT_Driver driver ); |
@@ -358,8 +351,7 @@ FT_BEGIN_HEADER |
TT_Size ins ); |
FT_LOCAL( FT_Error ) |
- TT_Run_Context( TT_ExecContext exec, |
- FT_Bool debug ); |
+ TT_Run_Context( TT_ExecContext exec ); |
#endif /* TT_USE_BYTECODE_INTERPRETER */ |