Skip to content

Commit a1c925c

Browse files
author
Nibedita Jena
committed
8373290: Update FreeType to 2.14.1
Backport-of: eec5c85
1 parent 7f92058 commit a1c925c

286 files changed

Lines changed: 7332 additions & 4950 deletions

File tree

Some content is hidden

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

src/java.desktop/share/legal/freetype.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## The FreeType Project: Freetype v2.13.3
1+
## The FreeType Project: Freetype v2.14.1
22

33

44
### FreeType Notice
@@ -21,25 +21,24 @@ which fits your needs best.
2121
### FreeType License
2222
```
2323
24-
Copyright (C) 1996-2024 by David Turner, Robert Wilhelm, and Werner Lemberg.
25-
Copyright (C) 2007-2024 by Dereg Clegg and Michael Toftdal.
26-
Copyright (C) 1996-2024 by Just van Rossum, David Turner, Robert Wilhelm, and Werner Lemberg.
27-
Copyright (C) 2022-2024 by David Turner, Robert Wilhelm, Werner Lemberg, George Williams, and
28-
Copyright (C) 2004-2024 by Masatake YAMATO and Redhat K.K.
29-
Copyright (C) 2007-2024 by Derek Clegg and Michael Toftdal.
30-
Copyright (C) 2003-2024 by Masatake YAMATO, Red Hat K.K.,
31-
Copyright (C) 1996-2024 by David Turner, Robert Wilhelm, Werner Lemberg, and Dominik Röttsches.
32-
Copyright (C) 2007-2024 by David Turner.
33-
Copyright (C) 2022-2024 by David Turner, Robert Wilhelm, Werner Lemberg, and Moazin Khatti.
34-
Copyright (C) 2007-2024 by Rahul Bhalerao <[email protected]>, <[email protected]>.
35-
Copyright (C) 2008-2024 by David Turner, Robert Wilhelm, Werner Lemberg, and suzuki toshiya.
36-
Copyright (C) 2013-2024 by Google, Inc.
37-
Copyright (C) 2019-2024 by Nikhil Ramakrishnan, David Turner, Robert Wilhelm, and Werner Lemberg.
38-
Copyright (C) 2009-2024 by Oran Agra and Mickey Gabel.
39-
Copyright (C) 2018-2024 by David Turner, Robert Wilhelm, Dominik Röttsches, and Werner Lemberg.
40-
Copyright (C) 2004-2024 by David Turner, Robert Wilhelm, Werner Lemberg, and George Williams.
41-
42-
24+
Copyright (C) 1996-2025 by David Turner, Robert Wilhelm, and Werner Lemberg.
25+
Copyright (C) 2007-2025 by Dereg Clegg and Michael Toftdal.
26+
Copyright (C) 1996-2025 by Just van Rossum, David Turner, Robert Wilhelm, and Werner Lemberg.
27+
Copyright (C) 2022-2025 by David Turner, Robert Wilhelm, Werner Lemberg, George Williams, and
28+
Copyright (C) 2004-2025 by Masatake YAMATO and Redhat K.K.
29+
Copyright (C) 2007-2025 by Derek Clegg and Michael Toftdal.
30+
Copyright (C) 2003-2025 by Masatake YAMATO, Red Hat K.K.,
31+
Copyright (C) 1996-2025 by David Turner, Robert Wilhelm, Werner Lemberg, and Dominik Röttsches.
32+
Copyright (C) 2007-2025 by David Turner.
33+
Copyright (C) 2022-2025 by David Turner, Robert Wilhelm, Werner Lemberg, and Moazin Khatti.
34+
Copyright (C) 2007-2025 by Rahul Bhalerao <[email protected]>, <[email protected]>.
35+
Copyright (C) 2025 by Behdad Esfahbod.
36+
Copyright (C) 2008-2025 by David Turner, Robert Wilhelm, Werner Lemberg, and suzuki toshiya.
37+
Copyright (C) 2013-2025 by Google, Inc.
38+
Copyright (C) 2019-2025 by Nikhil Ramakrishnan, David Turner, Robert Wilhelm, and Werner Lemberg.
39+
Copyright (C) 2009-2025 by Oran Agra and Mickey Gabel.
40+
Copyright (C) 2018-2025 by David Turner, Robert Wilhelm, Dominik Röttsches, and Werner Lemberg.
41+
Copyright (C) 2004-2025 by David Turner, Robert Wilhelm, Werner Lemberg, and George Williams.
4342
The FreeType Project LICENSE
4443
----------------------------
4544
@@ -207,6 +206,7 @@ Legal Terms
207206
208207
https://www.freetype.org
209208
209+
210210
```
211211

212212
### GPL v2

src/java.desktop/share/native/libfreetype/include/freetype/config/ftconfig.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* ANSI-specific configuration file (specification only).
66
*
7-
* Copyright (C) 1996-2024 by
7+
* Copyright (C) 1996-2025 by
88
* David Turner, Robert Wilhelm, and Werner Lemberg.
99
*
1010
* This file is part of the FreeType project, and may only be used,

src/java.desktop/share/native/libfreetype/include/freetype/config/ftheader.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* Build macros of the FreeType 2 library.
66
*
7-
* Copyright (C) 1996-2024 by
7+
* Copyright (C) 1996-2025 by
88
* David Turner, Robert Wilhelm, and Werner Lemberg.
99
*
1010
* This file is part of the FreeType project, and may only be used,

src/java.desktop/share/native/libfreetype/include/freetype/config/ftoption.h

Lines changed: 37 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* User-selectable configuration macros (specification only).
66
*
7-
* Copyright (C) 1996-2024 by
7+
* Copyright (C) 1996-2025 by
88
* David Turner, Robert Wilhelm, and Werner Lemberg.
99
*
1010
* This file is part of the FreeType project, and may only be used,
@@ -158,12 +158,12 @@ FT_BEGIN_HEADER
158158

159159
/**************************************************************************
160160
*
161-
* If this macro is defined, try to use an inlined assembler version of the
162-
* @FT_MulFix function, which is a 'hotspot' when loading and hinting
163-
* glyphs, and which should be executed as fast as possible.
161+
* If this macro is defined, try to use an inlined 64-bit or assembler
162+
* version of the @FT_MulFix function, which is a 'hotspot' when loading
163+
* and hinting glyphs, and which should be executed as fast as possible.
164164
*
165-
* Note that if your compiler or CPU is not supported, this will default to
166-
* the standard and portable implementation found in `ftcalc.c`.
165+
* If your compiler is not C99-compliant or CPU assembly is not supported,
166+
* you can disable this option.
167167
*/
168168
#define FT_CONFIG_OPTION_INLINE_MULFIX
169169

@@ -293,6 +293,31 @@ FT_BEGIN_HEADER
293293
/* #define FT_CONFIG_OPTION_USE_HARFBUZZ */
294294

295295

296+
/**************************************************************************
297+
*
298+
* HarfBuzz dynamic support.
299+
*
300+
* Define this macro if you want the HarfBuzz library to be loaded at
301+
* runtime instead of being linked to FreeType.
302+
*
303+
* This option has no effect if `FT_CONFIG_OPTION_USE_HARFBUZZ` is not
304+
* defined.
305+
*
306+
* When this option is enabled, FreeType will try to load the HarfBuzz
307+
* library at runtime, using `dlopen` or `LoadLibrary`, depending on the
308+
* platform. On Microsoft platforms, the library name looked up is
309+
* `libharfbuzz-0.dll`. On Apple platforms, the library name looked up
310+
* is `libharfbuzz.0.dylib`. On all other platforms, the library name
311+
* looked up is `libharfbuzz.so.0`. This name can be overridden by
312+
* defining the macro `FT_LIBHARFBUZZ` at FreeType compilation time.
313+
*
314+
* If you use a build system like cmake or the `configure` script,
315+
* options set by those programs have precedence, overwriting the value
316+
* here with the configured one.
317+
*/
318+
/* #define FT_CONFIG_OPTION_USE_HARFBUZZ_DYNAMIC */
319+
320+
296321
/**************************************************************************
297322
*
298323
* Brotli support.
@@ -679,7 +704,7 @@ FT_BEGIN_HEADER
679704
* defined.
680705
*
681706
* [1]
682-
* https://www.microsoft.com/typography/cleartype/truetypecleartype.aspx
707+
* https://learn.microsoft.com/typography/cleartype/truetypecleartype
683708
*/
684709
#define TT_CONFIG_OPTION_SUBPIXEL_HINTING
685710

@@ -697,7 +722,7 @@ FT_BEGIN_HEADER
697722
* flags array which can be used to disambiguate, but old fonts will not
698723
* have them.
699724
*
700-
* https://www.microsoft.com/typography/otspec/glyf.htm
725+
* https://learn.microsoft.com/typography/opentype/spec/glyf
701726
* https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6glyf.html
702727
*/
703728
#undef TT_CONFIG_OPTION_COMPONENT_OFFSET_SCALED
@@ -760,10 +785,10 @@ FT_BEGIN_HEADER
760785
/**************************************************************************
761786
*
762787
* Option `TT_CONFIG_OPTION_GPOS_KERNING` enables a basic GPOS kerning
763-
* implementation (for TrueType fonts only). With this defined, FreeType
764-
* is able to get kerning pair data from the GPOS 'kern' feature as well as
765-
* legacy 'kern' tables; without this defined, FreeType will only be able
766-
* to use legacy 'kern' tables.
788+
* implementation (for TrueType and OpenType fonts only). With this
789+
* defined, FreeType is able to get kerning pair data from the GPOS 'kern'
790+
* feature as well as legacy 'kern' tables; without this defined, FreeType
791+
* will only be able to use legacy 'kern' tables.
767792
*
768793
* Note that FreeType does not support more advanced GPOS layout features;
769794
* even the 'kern' feature implemented here doesn't handle more

src/java.desktop/share/native/libfreetype/include/freetype/config/ftstdlib.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* ANSI-specific library and header configuration file (specification
66
* only).
77
*
8-
* Copyright (C) 2002-2024 by
8+
* Copyright (C) 2002-2025 by
99
* David Turner, Robert Wilhelm, and Werner Lemberg.
1010
*
1111
* This file is part of the FreeType project, and may only be used,

src/java.desktop/share/native/libfreetype/include/freetype/config/integer-types.h

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* FreeType integer types definitions.
66
*
7-
* Copyright (C) 1996-2024 by
7+
* Copyright (C) 1996-2025 by
88
* David Turner, Robert Wilhelm, and Werner Lemberg.
99
*
1010
* This file is part of the FreeType project, and may only be used,
@@ -17,6 +17,8 @@
1717
#ifndef FREETYPE_CONFIG_INTEGER_TYPES_H_
1818
#define FREETYPE_CONFIG_INTEGER_TYPES_H_
1919

20+
FT_BEGIN_HEADER
21+
2022
/* There are systems (like the Texas Instruments 'C54x) where a `char` */
2123
/* has 16~bits. ANSI~C says that `sizeof(char)` is always~1. Since an */
2224
/* `int` has 16~bits also for this system, `sizeof(int)` gives~1 which */
@@ -242,9 +244,34 @@
242244
#endif /* FT_SIZEOF_LONG == (64 / FT_CHAR_BIT) */
243245

244246
#ifdef FT_INT64
247+
245248
typedef FT_INT64 FT_Int64;
246249
typedef FT_UINT64 FT_UInt64;
247-
#endif
248250

251+
# define FT_INT64_ZERO 0
252+
253+
#else /* !FT_INT64 */
254+
255+
/* we need to emulate 64-bit data types if none are available */
256+
257+
typedef struct FT_Int64_
258+
{
259+
FT_UInt32 lo;
260+
FT_UInt32 hi;
261+
262+
} FT_Int64;
263+
264+
typedef struct FT_UInt64_
265+
{
266+
FT_UInt32 lo;
267+
FT_UInt32 hi;
268+
269+
} FT_UInt64;
270+
271+
# define FT_INT64_ZERO { 0, 0 }
272+
273+
#endif /* !FT_INT64 */
274+
275+
FT_END_HEADER
249276

250277
#endif /* FREETYPE_CONFIG_INTEGER_TYPES_H_ */

src/java.desktop/share/native/libfreetype/include/freetype/config/mac-support.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* Mac/OS X support configuration header.
66
*
7-
* Copyright (C) 1996-2024 by
7+
* Copyright (C) 1996-2025 by
88
* David Turner, Robert Wilhelm, and Werner Lemberg.
99
*
1010
* This file is part of the FreeType project, and may only be used,

src/java.desktop/share/native/libfreetype/include/freetype/config/public-macros.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* Define a set of compiler macros used in public FreeType headers.
66
*
7-
* Copyright (C) 2020-2024 by
7+
* Copyright (C) 2020-2025 by
88
* David Turner, Robert Wilhelm, and Werner Lemberg.
99
*
1010
* This file is part of the FreeType project, and may only be used,
@@ -62,8 +62,8 @@ FT_BEGIN_HEADER
6262
* because it is needed by `FT_EXPORT`.
6363
*/
6464

65-
/* Visual C, mingw */
66-
#if defined( _WIN32 )
65+
/* Visual C, MinGW, Cygwin */
66+
#if defined( _WIN32 ) || defined( __CYGWIN__ )
6767

6868
#if defined( FT2_BUILD_LIBRARY ) && defined( DLL_EXPORT )
6969
#define FT_PUBLIC_FUNCTION_ATTRIBUTE __declspec( dllexport )

0 commit comments

Comments
 (0)