| Index: third_party/freetype/src/sfnt/ttmtx.c
|
| diff --git a/core/src/fxge/fx_freetype/fxft2.5.01/src/sfnt/ttmtx.c b/third_party/freetype/src/sfnt/ttmtx.c
|
| similarity index 91%
|
| rename from core/src/fxge/fx_freetype/fxft2.5.01/src/sfnt/ttmtx.c
|
| rename to third_party/freetype/src/sfnt/ttmtx.c
|
| index 9fe61fb3564cde5debc8eb592c9c0f0f93be358e..bb319577e26cdc4871dda520414cdeda5d6863c7 100644
|
| --- a/core/src/fxge/fx_freetype/fxft2.5.01/src/sfnt/ttmtx.c
|
| +++ b/third_party/freetype/src/sfnt/ttmtx.c
|
| @@ -4,7 +4,7 @@
|
| /* */
|
| /* Load the metrics tables common to TTF and OTF fonts (body). */
|
| /* */
|
| -/* Copyright 2006-2009, 2011-2013 by */
|
| +/* Copyright 2006-2009, 2011-2014 by */
|
| /* David Turner, Robert Wilhelm, and Werner Lemberg. */
|
| /* */
|
| /* This file is part of the FreeType project, and may only be used, */
|
| @@ -16,10 +16,10 @@
|
| /***************************************************************************/
|
|
|
|
|
| -#include "../../include/ft2build.h"
|
| -#include "../../include/freetype/internal/ftdebug.h"
|
| -#include "../../include/freetype/internal/ftstream.h"
|
| -#include "../../include/freetype/tttags.h"
|
| +#include <ft2build.h>
|
| +#include FT_INTERNAL_DEBUG_H
|
| +#include FT_INTERNAL_STREAM_H
|
| +#include FT_TRUETYPE_TAGS_H
|
| #include "ttmtx.h"
|
|
|
| #include "sferrors.h"
|
| @@ -78,7 +78,6 @@
|
| }
|
|
|
| error = face->goto_table( face, tag, stream, &table_size );
|
| -#if 0
|
| if ( error )
|
| goto Fail;
|
|
|
| @@ -87,12 +86,6 @@
|
|
|
| Fail:
|
| return error;
|
| -#else
|
| - *ptable_size = error ? 0 : table_size;
|
| - *ptable_offset = FT_STREAM_POS();
|
| -
|
| - return 0;
|
| -#endif
|
| }
|
|
|
|
|
| @@ -190,22 +183,25 @@
|
| /* tt_face_get_metrics */
|
| /* */
|
| /* <Description> */
|
| - /* Returns the horizontal or vertical metrics in font units for a */
|
| - /* given glyph. The metrics are the left side bearing (resp. top */
|
| - /* side bearing) and advance width (resp. advance height). */
|
| + /* Return the horizontal or vertical metrics in font units for a */
|
| + /* given glyph. The values are the left side bearing (top side */
|
| + /* bearing for vertical metrics) and advance width (advance height */
|
| + /* for vertical metrics). */
|
| /* */
|
| /* <Input> */
|
| - /* header :: A pointer to either the horizontal or vertical metrics */
|
| - /* structure. */
|
| + /* face :: A pointer to the TrueType face structure. */
|
| + /* */
|
| + /* vertical :: If set to TRUE, get vertical metrics. */
|
| /* */
|
| - /* idx :: The glyph index. */
|
| + /* gindex :: The glyph index. */
|
| /* */
|
| /* <Output> */
|
| - /* bearing :: The bearing, either left side or top side. */
|
| + /* abearing :: The bearing, either left side or top side. */
|
| /* */
|
| - /* advance :: The advance width resp. advance height. */
|
| + /* aadvance :: The advance width or advance height, depending on */
|
| + /* the `vertical' flag. */
|
| /* */
|
| - FT_LOCAL_DEF( FT_Error )
|
| + FT_LOCAL_DEF( void )
|
| tt_face_get_metrics( TT_Face face,
|
| FT_Bool vertical,
|
| FT_UInt gindex,
|
| @@ -278,8 +274,6 @@
|
| *abearing = 0;
|
| *aadvance = 0;
|
| }
|
| -
|
| - return FT_Err_Ok;
|
| }
|
|
|
|
|
|
|