| Index: third_party/freetype/include/ftautoh.h
|
| diff --git a/core/src/fxge/fx_freetype/fxft2.5.01/include/freetype/ftautoh.h b/third_party/freetype/include/ftautoh.h
|
| similarity index 84%
|
| rename from core/src/fxge/fx_freetype/fxft2.5.01/include/freetype/ftautoh.h
|
| rename to third_party/freetype/include/ftautoh.h
|
| index 6edd9f4b734774c16beedcfec69aae7c328d6bbb..59191abbfe402676c5678e0d8a14eec1742862d8 100644
|
| --- a/core/src/fxge/fx_freetype/fxft2.5.01/include/freetype/ftautoh.h
|
| +++ b/third_party/freetype/include/ftautoh.h
|
| @@ -19,8 +19,8 @@
|
| #ifndef __FTAUTOH_H__
|
| #define __FTAUTOH_H__
|
|
|
| -#include "../ft2build.h"
|
| -#include "freetype.h"
|
| +#include <ft2build.h>
|
| +#include FT_FREETYPE_H
|
|
|
| #ifdef FREETYPE_H
|
| #error "freetype.h of FreeType 1 has been loaded!"
|
| @@ -79,7 +79,7 @@ FT_BEGIN_HEADER
|
| * sense, see the @FT_AUTOHINTER_SCRIPT_XXX values) is stored as an
|
| * array with `num_glyphs' elements, as found in the font's @FT_Face
|
| * structure. The `glyph-to-script-map' property returns a pointer to
|
| - * this array which can be modified as needed. Note that the
|
| + * this array, which can be modified as needed. Note that the
|
| * modification should happen before the first glyph gets processed by
|
| * the auto-hinter so that the global analysis of the font shapes
|
| * actually uses the modified mapping.
|
| @@ -245,12 +245,12 @@ FT_BEGIN_HEADER
|
| * The data exchange structure for the @glyph-to-script-map property.
|
| *
|
| */
|
| - typedef struct FT_Prop_GlyphToScriptMap_
|
| - {
|
| - FT_Face face;
|
| - FT_Byte* map;
|
| + typedef struct FT_Prop_GlyphToScriptMap_
|
| + {
|
| + FT_Face face;
|
| + FT_Byte* map;
|
|
|
| - } FT_Prop_GlyphToScriptMap;
|
| + } FT_Prop_GlyphToScriptMap;
|
|
|
|
|
| /**************************************************************************
|
| @@ -282,12 +282,57 @@ FT_BEGIN_HEADER
|
| * This property can be used with @FT_Property_Get also.
|
| *
|
| * It's important to use the right timing for changing this value: The
|
| - * creation of the glyph-to-script map which eventually uses the
|
| + * creation of the glyph-to-script map that eventually uses the
|
| * fallback script value gets triggered either by setting or reading a
|
| * face-specific property like @glyph-to-script-map, or by auto-hinting
|
| * any glyph from that face. In particular, if you have already created
|
| * an @FT_Face structure but not loaded any glyph (using the
|
| - * auto-hinter), a change of the fallback glyph will affect this face.
|
| + * auto-hinter), a change of the fallback script will affect this face.
|
| + *
|
| + */
|
| +
|
| +
|
| + /**************************************************************************
|
| + *
|
| + * @property:
|
| + * default-script
|
| + *
|
| + * @description:
|
| + * *Experimental* *only*
|
| + *
|
| + * If Freetype gets compiled with FT_CONFIG_OPTION_USE_HARFBUZZ to make
|
| + * the HarfBuzz library access OpenType features for getting better
|
| + * glyph coverages, this property sets the (auto-fitter) script to be
|
| + * used for the default (OpenType) script data of a font's GSUB table.
|
| + * Features for the default script are intended for all scripts not
|
| + * explicitly handled in GSUB; an example is a `dlig' feature,
|
| + * containing the combination of the characters `T', `E', and `L' to
|
| + * form a `TEL' ligature.
|
| + *
|
| + * By default, this is @FT_AUTOHINTER_SCRIPT_LATIN. Using the
|
| + * `default-script' property, this default value can be changed.
|
| + *
|
| + * {
|
| + * FT_Library library;
|
| + * FT_UInt default_script = FT_AUTOHINTER_SCRIPT_NONE;
|
| + *
|
| + *
|
| + * FT_Init_FreeType( &library );
|
| + *
|
| + * FT_Property_Set( library, "autofitter",
|
| + * "default-script", &default_script );
|
| + * }
|
| + *
|
| + * @note:
|
| + * This property can be used with @FT_Property_Get also.
|
| + *
|
| + * It's important to use the right timing for changing this value: The
|
| + * creation of the glyph-to-script map that eventually uses the
|
| + * default script value gets triggered either by setting or reading a
|
| + * face-specific property like @glyph-to-script-map, or by auto-hinting
|
| + * any glyph from that face. In particular, if you have already created
|
| + * an @FT_Face structure but not loaded any glyph (using the
|
| + * auto-hinter), a change of the default script will affect this face.
|
| *
|
| */
|
|
|
| @@ -339,15 +384,15 @@ FT_BEGIN_HEADER
|
| * The data exchange structure for the @increase-x-height property.
|
| *
|
| */
|
| - typedef struct FT_Prop_IncreaseXHeight_
|
| - {
|
| - FT_Face face;
|
| - FT_UInt limit;
|
| + typedef struct FT_Prop_IncreaseXHeight_
|
| + {
|
| + FT_Face face;
|
| + FT_UInt limit;
|
|
|
| - } FT_Prop_IncreaseXHeight;
|
| + } FT_Prop_IncreaseXHeight;
|
|
|
| + /* */
|
|
|
| - /* */
|
|
|
| FT_END_HEADER
|
|
|
|
|