Skip to content

Commit 5040204

Browse files
authored
Merge pull request ibmruntimes#737 from keithc-ca/freetype
Update FreeType to version 2.13.2
2 parents 5160cba + 38c52ab commit 5040204

Some content is hidden

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

101 files changed

+3580
-3919
lines changed

jdk/THIRD_PARTY_README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3371,7 +3371,7 @@ claims in such list are, in fact, Essential Claims.]
33713371
-------------------------------------------------------------------------------
33723372

33733373
%% This notice is provided with respect to the FreeType 2 font engine,
3374-
version 2.13.0, which may be included with JRE 8, and JDK 8, and OpenJDK 8.
3374+
version 2.13.2, which may be included with JRE 8, and JDK 8, and OpenJDK 8.
33753375

33763376
--- begin of LICENSE ---
33773377

jdk/src/share/native/sun/awt/libfreetype/include/freetype/config/ftoption.h

Lines changed: 7 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -661,36 +661,12 @@ FT_BEGIN_HEADER
661661
* not) instructions in a certain way so that all TrueType fonts look like
662662
* they do in a Windows ClearType (DirectWrite) environment. See [1] for a
663663
* technical overview on what this means. See `ttinterp.h` for more
664-
* details on the LEAN option.
664+
* details on this option.
665665
*
666-
* There are three possible values.
667-
*
668-
* Value 1:
669-
* This value is associated with the 'Infinality' moniker, contributed by
670-
* an individual nicknamed Infinality with the goal of making TrueType
671-
* fonts render better than on Windows. A high amount of configurability
672-
* and flexibility, down to rules for single glyphs in fonts, but also
673-
* very slow. Its experimental and slow nature and the original
674-
* developer losing interest meant that this option was never enabled in
675-
* default builds.
676-
*
677-
* The corresponding interpreter version is v38.
678-
*
679-
* Value 2:
680-
* The new default mode for the TrueType driver. The Infinality code
681-
* base was stripped to the bare minimum and all configurability removed
682-
* in the name of speed and simplicity. The configurability was mainly
683-
* aimed at legacy fonts like 'Arial', 'Times New Roman', or 'Courier'.
684-
* Legacy fonts are fonts that modify vertical stems to achieve clean
685-
* black-and-white bitmaps. The new mode focuses on applying a minimal
686-
* set of rules to all fonts indiscriminately so that modern and web
687-
* fonts render well while legacy fonts render okay.
688-
*
689-
* The corresponding interpreter version is v40.
690-
*
691-
* Value 3:
692-
* Compile both, making both v38 and v40 available (the latter is the
693-
* default).
666+
* The new default mode focuses on applying a minimal set of rules to all
667+
* fonts indiscriminately so that modern and web fonts render well while
668+
* legacy fonts render okay. The corresponding interpreter version is v40.
669+
* The so-called Infinality mode (v38) is no longer available in FreeType.
694670
*
695671
* By undefining these, you get rendering behavior like on Windows without
696672
* ClearType, i.e., Windows XP without ClearType enabled and Win9x
@@ -705,9 +681,7 @@ FT_BEGIN_HEADER
705681
* [1]
706682
* https://www.microsoft.com/typography/cleartype/truetypecleartype.aspx
707683
*/
708-
/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING 1 */
709-
#define TT_CONFIG_OPTION_SUBPIXEL_HINTING 2
710-
/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING ( 1 | 2 ) */
684+
#define TT_CONFIG_OPTION_SUBPIXEL_HINTING
711685

712686

713687
/**************************************************************************
@@ -977,21 +951,14 @@ FT_BEGIN_HEADER
977951

978952

979953
/*
980-
* The next three macros are defined if native TrueType hinting is
954+
* The next two macros are defined if native TrueType hinting is
981955
* requested by the definitions above. Don't change this.
982956
*/
983957
#ifdef TT_CONFIG_OPTION_BYTECODE_INTERPRETER
984958
#define TT_USE_BYTECODE_INTERPRETER
985-
986959
#ifdef TT_CONFIG_OPTION_SUBPIXEL_HINTING
987-
#if TT_CONFIG_OPTION_SUBPIXEL_HINTING & 1
988-
#define TT_SUPPORT_SUBPIXEL_HINTING_INFINALITY
989-
#endif
990-
991-
#if TT_CONFIG_OPTION_SUBPIXEL_HINTING & 2
992960
#define TT_SUPPORT_SUBPIXEL_HINTING_MINIMAL
993961
#endif
994-
#endif
995962
#endif
996963

997964

jdk/src/share/native/sun/awt/libfreetype/include/freetype/config/ftstdlib.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,13 @@
111111

112112
#include <stdio.h>
113113

114-
#define FT_FILE FILE
115-
#define ft_fclose fclose
116-
#define ft_fopen fopen
117-
#define ft_fread fread
118-
#define ft_fseek fseek
119-
#define ft_ftell ftell
120-
#define ft_sprintf sprintf
114+
#define FT_FILE FILE
115+
#define ft_fclose fclose
116+
#define ft_fopen fopen
117+
#define ft_fread fread
118+
#define ft_fseek fseek
119+
#define ft_ftell ftell
120+
#define ft_snprintf snprintf
121121

122122

123123
/**************************************************************************

0 commit comments

Comments
 (0)