Skip to content

Commit 2020f44

Browse files
committed
Update freetype to 2.14.2
1 parent 917e13b commit 2020f44

Some content is hidden

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

59 files changed

+508
-906
lines changed

3rdparty/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373

7474
## FreeType
7575
- [![Upstream](https://img.shields.io/gitlab/v/tag/freetype/freetype?label=Upstream)](https://gitlab.freedesktop.org/freetype/freetype)
76-
- Version: 2.14.1
76+
- Version: 2.14.2
7777
- License: BSD-style (The FreeType Project)
7878

7979
## Glad
@@ -224,7 +224,7 @@
224224

225225
## robin-map
226226
- [![Upstream](https://img.shields.io/github/v/tag/Tessil/robin-map?label=Upstream)](https://github.com/Tessil/robin-map)
227-
- Version: 1.4.0 with modified for stl compatibility
227+
- Version: 1.4.1 with modified for stl compatibility
228228
- Modify `robin_map::iterator->second` to mutable same with `stl map/unordered_map`
229229
- Forward `robin_map::operator[]` key by `std::forward` same with `stl map/unordered_map`
230230
- Improve code compiler compatibility, i.g. `std::max` ==> `(std::max)`

3rdparty/freetype/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ project(freetype C)
159159

160160
set(VERSION_MAJOR "2")
161161
set(VERSION_MINOR "14")
162-
set(VERSION_PATCH "1")
162+
set(VERSION_PATCH "2")
163163

164164
# Generate LIBRARY_VERSION and LIBRARY_SOVERSION.
165165
set(LIBTOOL_REGEX "version_info='([0-9]+):([0-9]+):([0-9]+)'")

3rdparty/freetype/README

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FreeType 2.14.1
1+
FreeType 2.14.2
22
===============
33

44
Homepage: https://freetype.org
@@ -32,9 +32,9 @@ sites. Go to
3232

3333
and download one of the following files.
3434

35-
freetype-doc-2.14.1.tar.xz
36-
freetype-doc-2.14.1.tar.gz
37-
ftdoc2141.zip
35+
freetype-doc-2.14.2.tar.xz
36+
freetype-doc-2.14.2.tar.gz
37+
ftdoc2142.zip
3838

3939
To view the documentation online, go to
4040

3rdparty/freetype/builds/unix/configure.raw

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ AC_CONFIG_SRCDIR([ftconfig.h.in])
1717

1818
# Don't forget to update `docs/VERSIONS.TXT'!
1919

20-
version_info='26:4:20'
20+
version_info='26:5:20'
2121
AC_SUBST([version_info])
2222
ft_version=`echo $version_info | tr : .`
2323
AC_SUBST([ft_version])
@@ -1112,21 +1112,26 @@ AC_SUBST([wl])
11121112
AC_SUBST([build_libtool_libs])
11131113

11141114

1115-
# changing LDFLAGS value should only be done after
1116-
# lt_cv_prog_compiler_static_works test
1115+
# We cannot use alternation (`\|`) in the `sed` regexp since it is not
1116+
# portable.
11171117

11181118
ftoption_set()
11191119
{
1120-
regexp="-e \\\"s|.*#.*def.*$1\>.*|#define $1|\\\""
1120+
regexp="-e \\\"s|.*#.*def.*$1 .*|#define $1|\\\" \
1121+
-e \\\"s|.*#.*def.*$1\$|#define $1|\\\""
11211122
FTOPTION_H_SED="$FTOPTION_H_SED $regexp"
11221123
}
11231124

11241125
ftoption_unset()
11251126
{
1126-
regexp="-e \\\"s|.*#.*def.*$1\>.*|/* #undef $1 */|\\\""
1127+
regexp="-e \\\"s|.*#.*def.*$1 .*|/* #undef $1 */|\\\" \
1128+
-e \\\"s|.*#.*def.*$1\$|/* #undef $1 */|\\\""
11271129
FTOPTION_H_SED="$FTOPTION_H_SED $regexp"
11281130
}
11291131

1132+
# Changing the `LDFLAGS` value should only be done after the
1133+
# `lt_cv_prog_compiler_static_works` test.
1134+
11301135
if test "$have_zlib" != no; then
11311136
CFLAGS="$CFLAGS $ZLIB_CFLAGS"
11321137
LDFLAGS="$LDFLAGS $ZLIB_LIBS"

3rdparty/freetype/devel/ftoption.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,13 @@ FT_BEGIN_HEADER
759759
/**************************************************************************
760760
*
761761
* Define `TT_CONFIG_OPTION_BDF` if you want to include support for an
762-
* embedded 'BDF~' table within SFNT-based bitmap formats.
762+
* embedded 'BDF~' table within an SFNT-based `.otb` font file. This table
763+
* is an extension used by X11 to preserve BDF properties after conversion
764+
* to SFNT containers. See
765+
*
766+
* https://fontforge.org/docs/techref/non-standard.html#non-standard-bdf
767+
*
768+
* for more details.
763769
*/
764770
#define TT_CONFIG_OPTION_BDF
765771

3rdparty/freetype/include/freetype/config/ftoption.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,13 @@ FT_BEGIN_HEADER
759759
/**************************************************************************
760760
*
761761
* Define `TT_CONFIG_OPTION_BDF` if you want to include support for an
762-
* embedded 'BDF~' table within SFNT-based bitmap formats.
762+
* embedded 'BDF~' table within an SFNT-based `.otb` font file. This table
763+
* is an extension used by X11 to preserve BDF properties after conversion
764+
* to SFNT containers. See
765+
*
766+
* https://fontforge.org/docs/techref/non-standard.html#non-standard-bdf
767+
*
768+
* for more details.
763769
*/
764770
#define TT_CONFIG_OPTION_BDF
765771

3rdparty/freetype/include/freetype/config/mac-support.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
* This is the only necessary change, so it is defined here instead
2525
* providing a new configuration file.
2626
*/
27+
#ifdef FT_MACINTOSH
2728
#if defined( __APPLE__ ) || ( defined( __MWERKS__ ) && defined( macintosh ) )
2829
/* No Carbon frameworks for 64bit 10.4.x. */
2930
/* `AvailabilityMacros.h` is available since Mac OS X 10.2, */
@@ -36,6 +37,7 @@
3637
( MAC_OS_X_VERSION_MIN_REQUIRED <= MAC_OS_X_VERSION_10_4 )
3738
#undef FT_MACINTOSH
3839
#endif
40+
#endif /* __APPLE__ ... */
3941

4042
#elif defined( __SC__ ) || defined( __MRC__ )
4143
/* Classic MacOS compilers */

3rdparty/freetype/include/freetype/freetype.h

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4318,14 +4318,13 @@ FT_BEGIN_HEADER
43184318
* property `no-stem-darkening` provided by the 'autofit', 'cff',
43194319
* 'type1', and 't1cid' modules; see @no-stem-darkening).
43204320
*
4321-
* * @FT_PARAM_TAG_LCD_FILTER_WEIGHTS (LCD filter weights, corresponding
4322-
* to function @FT_Library_SetLcdFilterWeights).
4323-
*
43244321
* * @FT_PARAM_TAG_RANDOM_SEED (seed value for the CFF, Type~1, and CID
43254322
* 'random' operator, corresponding to the `random-seed` property
43264323
* provided by the 'cff', 'type1', and 't1cid' modules; see
43274324
* @random-seed).
43284325
*
4326+
* * @FT_PARAM_TAG_LCD_FILTER_WEIGHTS (no longer supported).
4327+
*
43294328
* Pass `NULL` as `data` in @FT_Parameter for a given tag to reset the
43304329
* option and use the library or module default again.
43314330
*
@@ -4352,25 +4351,17 @@ FT_BEGIN_HEADER
43524351
* FT_Bool darken_stems = 1;
43534352
*
43544353
* FT_Parameter property2;
4355-
* FT_LcdFiveTapFilter custom_weight =
4356-
* { 0x11, 0x44, 0x56, 0x44, 0x11 };
4357-
*
4358-
* FT_Parameter property3;
43594354
* FT_Int32 random_seed = 314159265;
43604355
*
4361-
* FT_Parameter properties[3] = { property1,
4362-
* property2,
4363-
* property3 };
4356+
* FT_Parameter properties[2] = { property1,
4357+
* property2 };
43644358
*
43654359
*
43664360
* property1.tag = FT_PARAM_TAG_STEM_DARKENING;
43674361
* property1.data = &darken_stems;
43684362
*
4369-
* property2.tag = FT_PARAM_TAG_LCD_FILTER_WEIGHTS;
4370-
* property2.data = custom_weight;
4371-
*
4372-
* property3.tag = FT_PARAM_TAG_RANDOM_SEED;
4373-
* property3.data = &random_seed;
4363+
* property2.tag = FT_PARAM_TAG_RANDOM_SEED;
4364+
* property2.data = &random_seed;
43744365
*
43754366
* FT_Face_Properties( face, 3, properties );
43764367
* ```
@@ -4381,7 +4372,7 @@ FT_BEGIN_HEADER
43814372
* FT_Parameter property;
43824373
*
43834374
*
4384-
* property.tag = FT_PARAM_TAG_LCD_FILTER_WEIGHTS;
4375+
* property.tag = FT_PARAM_TAG_STEM_DARKENING;
43854376
* property.data = NULL;
43864377
*
43874378
* FT_Face_Properties( face, 1, &property );
@@ -5178,7 +5169,7 @@ FT_BEGIN_HEADER
51785169
*/
51795170
#define FREETYPE_MAJOR 2
51805171
#define FREETYPE_MINOR 14
5181-
#define FREETYPE_PATCH 1
5172+
#define FREETYPE_PATCH 2
51825173

51835174

51845175
/**************************************************************************

3rdparty/freetype/include/freetype/ftbdf.h

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ FT_BEGIN_HEADER
4444
*
4545
* @description:
4646
* This section contains the declaration of functions specific to BDF and
47-
* PCF fonts.
47+
* PCF fonts. They also work for SFNT bitmap fonts that contain a 'BDF~'
48+
* table like X11's `.otb` fonts.
4849
*
4950
*/
5051

@@ -151,7 +152,9 @@ FT_BEGIN_HEADER
151152
* FreeType error code. 0~means success.
152153
*
153154
* @note:
154-
* This function only works with BDF faces, returning an error otherwise.
155+
* This function only works with BDF faces and SFNT fonts that have a
156+
* 'BDF~' table, returning an error otherwise. For the latter, a bitmap
157+
* strike size must be selected first.
155158
*/
156159
FT_EXPORT( FT_Error )
157160
FT_Get_BDF_Charset_ID( FT_Face face,
@@ -165,7 +168,7 @@ FT_BEGIN_HEADER
165168
* FT_Get_BDF_Property
166169
*
167170
* @description:
168-
* Retrieve a BDF property from a BDF or PCF font file.
171+
* Retrieve a BDF property from a BDF or PCF font.
169172
*
170173
* @input:
171174
* face ::
@@ -196,6 +199,9 @@ FT_BEGIN_HEADER
196199
*
197200
* In case of error, `aproperty->type` is always set to
198201
* @BDF_PROPERTY_TYPE_NONE.
202+
*
203+
* This also works with SFNT fonts that have a 'BDF~' table, after a
204+
* bitmap strike size has been selected.
199205
*/
200206
FT_EXPORT( FT_Error )
201207
FT_Get_BDF_Property( FT_Face face,

3rdparty/freetype/include/freetype/ftimage.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,7 @@ FT_BEGIN_HEADER
875875
*/
876876
typedef struct FT_Span_
877877
{
878-
short x;
878+
unsigned short x;
879879
unsigned short len;
880880
unsigned char coverage;
881881

0 commit comments

Comments
 (0)