Skip to content
This repository was archived by the owner on Dec 29, 2023. It is now read-only.

Commit d1ae0ae

Browse files
author
patricejiang
committed
update libs
1 parent dd54d74 commit d1ae0ae

File tree

336 files changed

+30824
-17449
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

336 files changed

+30824
-17449
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
**/.DS_Store

android/arm64-v8a/include/freetype/config/ftconfig.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ FT_BEGIN_HEADER
8080
#ifdef FT_USE_AUTOCONF_SIZEOF_TYPES
8181

8282
#define SIZEOF_INT 4
83-
#define SIZEOF_LONG 8
83+
#define SIZEOF_LONG 4
8484
#define FT_SIZEOF_INT SIZEOF_INT
8585
#define FT_SIZEOF_LONG SIZEOF_LONG
8686

android/arm64-v8a/include/freetype/config/ftoption.h

+50-12
Original file line numberDiff line numberDiff line change
@@ -586,23 +586,53 @@ FT_BEGIN_HEADER
586586
/*************************************************************************/
587587
/* */
588588
/* Define TT_CONFIG_OPTION_SUBPIXEL_HINTING if you want to compile */
589-
/* EXPERIMENTAL subpixel hinting support into the TrueType driver. This */
590-
/* replaces the native TrueType hinting mechanism when anything but */
591-
/* FT_RENDER_MODE_MONO is requested. */
589+
/* subpixel hinting support into the TrueType driver. This modifies the */
590+
/* TrueType hinting mechanism when anything but FT_RENDER_MODE_MONO is */
591+
/* requested. */
592592
/* */
593-
/* Enabling this causes the TrueType driver to ignore instructions under */
594-
/* certain conditions. This is done in accordance with the guide here, */
595-
/* with some minor differences: */
593+
/* In particular, it modifies the bytecode interpreter to interpret (or */
594+
/* not) instructions in a certain way so that all TrueType fonts look */
595+
/* like they do in a Windows ClearType (DirectWrite) environment. See */
596+
/* [1] for a technical overview on what this means. See `ttinterp.h' */
597+
/* for more details on the LEAN option. */
596598
/* */
597-
/* http://www.microsoft.com/typography/cleartype/truetypecleartype.aspx */
599+
/* There are three options. */
598600
/* */
599-
/* By undefining this, you only compile the code necessary to hint */
600-
/* TrueType glyphs with native TT hinting. */
601+
/* 1. This option is associated with the `Infinality' moniker. */
602+
/* Contributed by an individual nicknamed Infinality with the goal of */
603+
/* making TrueType fonts render better than on Windows. A high */
604+
/* amount of configurability and flexibility, down to rules for */
605+
/* single glyphs in fonts, but also very slow. Its experimental and */
606+
/* slow nature and the original developer losing interest meant that */
607+
/* this option was never enabled in default builds. */
601608
/* */
602-
/* This option requires TT_CONFIG_OPTION_BYTECODE_INTERPRETER to be */
603-
/* defined. */
609+
/* 2. The new default mode for the TrueType driver. The Infinality code */
610+
/* base was stripped to the bare minimum and all configurability */
611+
/* removed in the name of speed and simplicity. The configurability */
612+
/* was mainly aimed at legacy fonts like Arial, Times New Roman, or */
613+
/* Courier. Legacy fonts are fonts that modify vertical stems to */
614+
/* achieve clean black-and-white bitmaps. The new mode focuses on */
615+
/* applying a minimal set of rules to all fonts indiscriminately so */
616+
/* that modern and web fonts render well while legacy fonts render */
617+
/* okay. */
604618
/* */
605-
/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING */
619+
/* 3. Compile both. */
620+
/* */
621+
/* By undefining these, you get rendering behavior like on Windows */
622+
/* without ClearType, i.e., Windows XP without ClearType enabled and */
623+
/* Win9x (interpreter version v35). Or not, depending on how much */
624+
/* hinting blood and testing tears the font designer put into a given */
625+
/* font. If you define one or both subpixel hinting options, you can */
626+
/* switch between between v35 and the ones you define. */
627+
/* */
628+
/* This option requires TT_CONFIG_OPTION_BYTECODE_INTERPRETER to be */
629+
/* defined. */
630+
/* */
631+
/* [1] http://www.microsoft.com/typography/cleartype/truetypecleartype.aspx */
632+
/* */
633+
/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING 1 */
634+
/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING 2 */
635+
/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING ( 1 | 2 ) */
606636

607637

608638
/*************************************************************************/
@@ -811,6 +841,14 @@ FT_BEGIN_HEADER
811841
*/
812842
#ifdef TT_CONFIG_OPTION_BYTECODE_INTERPRETER
813843
#define TT_USE_BYTECODE_INTERPRETER
844+
845+
#if TT_CONFIG_OPTION_SUBPIXEL_HINTING & 1
846+
#define TT_SUPPORT_SUBPIXEL_HINTING_INFINALITY
847+
#endif
848+
849+
#if TT_CONFIG_OPTION_SUBPIXEL_HINTING & 2
850+
#define TT_SUPPORT_SUBPIXEL_HINTING_MINIMAL
851+
#endif
814852
#endif
815853

816854

android/arm64-v8a/include/freetype/config/ftstdlib.h

+1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
#define FT_INT_MAX INT_MAX
6464
#define FT_INT_MIN INT_MIN
6565
#define FT_UINT_MAX UINT_MAX
66+
#define FT_LONG_MIN LONG_MIN
6667
#define FT_LONG_MAX LONG_MAX
6768
#define FT_ULONG_MAX ULONG_MAX
6869

android/arm64-v8a/include/freetype/freetype.h

+26-22
Original file line numberDiff line numberDiff line change
@@ -651,11 +651,11 @@ FT_BEGIN_HEADER
651651
/* */
652652
/* FT_ENCODING_SJIS :: */
653653
/* Corresponds to Japanese SJIS encoding. More info at */
654-
/* at `http://en.wikipedia.org/wiki/Shift_JIS'. */
654+
/* `http://en.wikipedia.org/wiki/Shift_JIS'. */
655655
/* See note on multi-byte encodings below. */
656656
/* */
657657
/* FT_ENCODING_GB2312 :: */
658-
/* Corresponds to an encoding system for Simplified Chinese as used */
658+
/* Corresponds to an encoding system for Simplified Chinese as */
659659
/* used in mainland China. */
660660
/* */
661661
/* FT_ENCODING_BIG5 :: */
@@ -1103,7 +1103,7 @@ FT_BEGIN_HEADER
11031103
/* FT_FACE_FLAG_SCALABLE :: */
11041104
/* Indicates that the face contains outline glyphs. This doesn't */
11051105
/* prevent bitmap strikes, i.e., a face can have both this and */
1106-
/* and @FT_FACE_FLAG_FIXED_SIZES set. */
1106+
/* @FT_FACE_FLAG_FIXED_SIZES set. */
11071107
/* */
11081108
/* FT_FACE_FLAG_FIXED_SIZES :: */
11091109
/* Indicates that the face contains bitmap strikes. See also the */
@@ -1222,7 +1222,7 @@ FT_BEGIN_HEADER
12221222
*
12231223
*/
12241224
#define FT_HAS_HORIZONTAL( face ) \
1225-
( face->face_flags & FT_FACE_FLAG_HORIZONTAL )
1225+
( (face)->face_flags & FT_FACE_FLAG_HORIZONTAL )
12261226

12271227

12281228
/*************************************************************************
@@ -1236,7 +1236,7 @@ FT_BEGIN_HEADER
12361236
*
12371237
*/
12381238
#define FT_HAS_VERTICAL( face ) \
1239-
( face->face_flags & FT_FACE_FLAG_VERTICAL )
1239+
( (face)->face_flags & FT_FACE_FLAG_VERTICAL )
12401240

12411241

12421242
/*************************************************************************
@@ -1250,7 +1250,7 @@ FT_BEGIN_HEADER
12501250
*
12511251
*/
12521252
#define FT_HAS_KERNING( face ) \
1253-
( face->face_flags & FT_FACE_FLAG_KERNING )
1253+
( (face)->face_flags & FT_FACE_FLAG_KERNING )
12541254

12551255

12561256
/*************************************************************************
@@ -1265,7 +1265,7 @@ FT_BEGIN_HEADER
12651265
*
12661266
*/
12671267
#define FT_IS_SCALABLE( face ) \
1268-
( face->face_flags & FT_FACE_FLAG_SCALABLE )
1268+
( (face)->face_flags & FT_FACE_FLAG_SCALABLE )
12691269

12701270

12711271
/*************************************************************************
@@ -1284,7 +1284,7 @@ FT_BEGIN_HEADER
12841284
*
12851285
*/
12861286
#define FT_IS_SFNT( face ) \
1287-
( face->face_flags & FT_FACE_FLAG_SFNT )
1287+
( (face)->face_flags & FT_FACE_FLAG_SFNT )
12881288

12891289

12901290
/*************************************************************************
@@ -1299,7 +1299,7 @@ FT_BEGIN_HEADER
12991299
*
13001300
*/
13011301
#define FT_IS_FIXED_WIDTH( face ) \
1302-
( face->face_flags & FT_FACE_FLAG_FIXED_WIDTH )
1302+
( (face)->face_flags & FT_FACE_FLAG_FIXED_WIDTH )
13031303

13041304

13051305
/*************************************************************************
@@ -1314,7 +1314,7 @@ FT_BEGIN_HEADER
13141314
*
13151315
*/
13161316
#define FT_HAS_FIXED_SIZES( face ) \
1317-
( face->face_flags & FT_FACE_FLAG_FIXED_SIZES )
1317+
( (face)->face_flags & FT_FACE_FLAG_FIXED_SIZES )
13181318

13191319

13201320
/*************************************************************************
@@ -1340,7 +1340,7 @@ FT_BEGIN_HEADER
13401340
*
13411341
*/
13421342
#define FT_HAS_GLYPH_NAMES( face ) \
1343-
( face->face_flags & FT_FACE_FLAG_GLYPH_NAMES )
1343+
( (face)->face_flags & FT_FACE_FLAG_GLYPH_NAMES )
13441344

13451345

13461346
/*************************************************************************
@@ -1355,7 +1355,7 @@ FT_BEGIN_HEADER
13551355
*
13561356
*/
13571357
#define FT_HAS_MULTIPLE_MASTERS( face ) \
1358-
( face->face_flags & FT_FACE_FLAG_MULTIPLE_MASTERS )
1358+
( (face)->face_flags & FT_FACE_FLAG_MULTIPLE_MASTERS )
13591359

13601360

13611361
/*************************************************************************
@@ -1373,7 +1373,7 @@ FT_BEGIN_HEADER
13731373
*
13741374
*/
13751375
#define FT_IS_CID_KEYED( face ) \
1376-
( face->face_flags & FT_FACE_FLAG_CID_KEYED )
1376+
( (face)->face_flags & FT_FACE_FLAG_CID_KEYED )
13771377

13781378

13791379
/*************************************************************************
@@ -1387,7 +1387,7 @@ FT_BEGIN_HEADER
13871387
*
13881388
*/
13891389
#define FT_IS_TRICKY( face ) \
1390-
( face->face_flags & FT_FACE_FLAG_TRICKY )
1390+
( (face)->face_flags & FT_FACE_FLAG_TRICKY )
13911391

13921392

13931393
/*************************************************************************
@@ -1401,7 +1401,7 @@ FT_BEGIN_HEADER
14011401
*
14021402
*/
14031403
#define FT_HAS_COLOR( face ) \
1404-
( face->face_flags & FT_FACE_FLAG_COLOR )
1404+
( (face)->face_flags & FT_FACE_FLAG_COLOR )
14051405

14061406

14071407
/*************************************************************************/
@@ -1941,7 +1941,7 @@ FT_BEGIN_HEADER
19411941
/* */
19421942
/* If the @FT_OPEN_MEMORY bit is set, assume that this is a */
19431943
/* memory file of `memory_size' bytes, located at `memory_address'. */
1944-
/* The data are are not copied, and the client is responsible for */
1944+
/* The data are not copied, and the client is responsible for */
19451945
/* releasing and destroying them _after_ the corresponding call to */
19461946
/* @FT_Done_Face. */
19471947
/* */
@@ -2339,9 +2339,9 @@ FT_BEGIN_HEADER
23392339
/* used to determine both scaling values. */
23402340
/* */
23412341
/* FT_SIZE_REQUEST_TYPE_REAL_DIM :: */
2342-
/* The real dimension. The sum of the the `ascender' and (minus */
2343-
/* of) the `descender' fields of @FT_FaceRec are used to determine */
2344-
/* both scaling values. */
2342+
/* The real dimension. The sum of the `ascender' and (minus of) */
2343+
/* the `descender' fields of @FT_FaceRec are used to determine both */
2344+
/* scaling values. */
23452345
/* */
23462346
/* FT_SIZE_REQUEST_TYPE_BBOX :: */
23472347
/* The font bounding box. The width and height of the `bbox' field */
@@ -2578,6 +2578,10 @@ FT_BEGIN_HEADER
25782578
/* don't have a corresponding glyph in the font). See the discussion */
25792579
/* of the @FT_FACE_FLAG_CID_KEYED flag for more details. */
25802580
/* */
2581+
/* If you receive `FT_Err_Glyph_Too_Big', try getting the glyph */
2582+
/* outline at EM size, then scale it manually and fill it as a */
2583+
/* graphics operation. */
2584+
/* */
25812585
FT_EXPORT( FT_Error )
25822586
FT_Load_Glyph( FT_Face face,
25832587
FT_UInt glyph_index,
@@ -2855,7 +2859,7 @@ FT_BEGIN_HEADER
28552859
*
28562860
* If @FT_LOAD_RENDER is also set, the glyph is rendered in the
28572861
* corresponding mode (i.e., the mode that matches the used algorithm
2858-
* best). An exeption is FT_LOAD_TARGET_MONO since it implies
2862+
* best). An exception is FT_LOAD_TARGET_MONO since it implies
28592863
* @FT_LOAD_MONOCHROME.
28602864
*
28612865
* You can use a hinting algorithm that doesn't correspond to the same
@@ -3273,7 +3277,7 @@ FT_BEGIN_HEADER
32733277
/* `.notdef'). */
32743278
/* */
32753279
/* This function always returns an error if the config macro */
3276-
/* `FT_CONFIG_OPTION_NO_GLYPH_NAMES' is not defined in `ftoptions.h'. */
3280+
/* `FT_CONFIG_OPTION_NO_GLYPH_NAMES' is not defined in `ftoption.h'. */
32773281
/* */
32783282
FT_EXPORT( FT_Error )
32793283
FT_Get_Glyph_Name( FT_Face face,
@@ -4172,7 +4176,7 @@ FT_BEGIN_HEADER
41724176
*/
41734177
#define FREETYPE_MAJOR 2
41744178
#define FREETYPE_MINOR 6
4175-
#define FREETYPE_PATCH 3
4179+
#define FREETYPE_PATCH 5
41764180

41774181

41784182
/*************************************************************************/

android/arm64-v8a/include/freetype/ft2build.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#ifndef FT2BUILD_H_
3535
#define FT2BUILD_H_
3636

37-
#include "config/ftheader.h"
37+
#include <freetype/config/ftheader.h>
3838

3939
#endif /* FT2BUILD_H_ */
4040

android/arm64-v8a/include/freetype/ftautoh.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,8 @@ FT_BEGIN_HEADER
219219
* U+0F00 - U+0FFF // Tibetan
220220
* U+1900 - U+194F // Limbu
221221
* U+1B80 - U+1BBF // Sundanese
222-
* U+1C80 - U+1CDF // Meetei Mayak
223222
* U+A800 - U+A82F // Syloti Nagri
223+
* U+ABC0 - U+ABFF // Meetei Mayek
224224
* U+11800 - U+118DF // Sharada
225225
* }
226226
*

android/arm64-v8a/include/freetype/ftcache.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ FT_BEGIN_HEADER
749749
/* aglyph :: The corresponding @FT_Glyph object. 0~in case of */
750750
/* failure. */
751751
/* */
752-
/* anode :: Used to return the address of of the corresponding cache */
752+
/* anode :: Used to return the address of the corresponding cache */
753753
/* node after incrementing its reference count (see note */
754754
/* below). */
755755
/* */
@@ -802,7 +802,7 @@ FT_BEGIN_HEADER
802802
/* aglyph :: The corresponding @FT_Glyph object. 0~in case of */
803803
/* failure. */
804804
/* */
805-
/* anode :: Used to return the address of of the corresponding */
805+
/* anode :: Used to return the address of the corresponding */
806806
/* cache node after incrementing its reference count */
807807
/* (see note below). */
808808
/* */
@@ -957,7 +957,7 @@ FT_BEGIN_HEADER
957957
/* <Output> */
958958
/* sbit :: A handle to a small bitmap descriptor. */
959959
/* */
960-
/* anode :: Used to return the address of of the corresponding cache */
960+
/* anode :: Used to return the address of the corresponding cache */
961961
/* node after incrementing its reference count (see note */
962962
/* below). */
963963
/* */
@@ -1012,7 +1012,7 @@ FT_BEGIN_HEADER
10121012
/* <Output> */
10131013
/* sbit :: A handle to a small bitmap descriptor. */
10141014
/* */
1015-
/* anode :: Used to return the address of of the corresponding */
1015+
/* anode :: Used to return the address of the corresponding */
10161016
/* cache node after incrementing its reference count */
10171017
/* (see note below). */
10181018
/* */

android/arm64-v8a/include/freetype/ftcffdrv.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ FT_BEGIN_HEADER
8989
* features preserve the design's weight and spacing much better than
9090
* aliased type would.
9191
*
92-
* 2) Aligment in the vertical direction: Weights and spacing along the
92+
* 2) Alignment in the vertical direction: Weights and spacing along the
9393
* y~axis are less critical; what is much more important is the visual
9494
* alignment of related features (like cap-height and x-height). The
9595
* sense of alignment for these is enhanced by the sharpness of grid-fit
@@ -110,7 +110,7 @@ FT_BEGIN_HEADER
110110
* to minimize distortion.
111111
*
112112
* @order:
113-
* hinting-engine
113+
* hinting-engine[cff]
114114
* no-stem-darkening[cff]
115115
* darkening-parameters[cff]
116116
*
@@ -120,7 +120,7 @@ FT_BEGIN_HEADER
120120
/**************************************************************************
121121
*
122122
* @property:
123-
* hinting-engine
123+
* hinting-engine[cff]
124124
*
125125
* @description:
126126
* Thanks to Adobe, which contributed a new hinting (and parsing)
@@ -157,8 +157,8 @@ FT_BEGIN_HEADER
157157
* FT_CFF_HINTING_XXX
158158
*
159159
* @description:
160-
* A list of constants used for the @hinting-engine property to select
161-
* the hinting engine for CFF fonts.
160+
* A list of constants used for the @hinting-engine[cff] property to
161+
* select the hinting engine for CFF fonts.
162162
*
163163
* @values:
164164
* FT_CFF_HINTING_FREETYPE ::

android/arm64-v8a/include/freetype/ftcid.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ FT_BEGIN_HEADER
9797
*
9898
* @description:
9999
* Retrieve the type of the input face, CID keyed or not. In
100-
* constrast to the @FT_IS_CID_KEYED macro this function returns
101-
* successfully also for CID-keyed fonts in an SNFT wrapper.
100+
* contrast to the @FT_IS_CID_KEYED macro this function returns
101+
* successfully also for CID-keyed fonts in an SFNT wrapper.
102102
*
103103
* @input:
104104
* face ::

0 commit comments

Comments
 (0)