Skip to content

Commit

Permalink
Update freetype to v2.13.3 (axmolengine#2098)
Browse files Browse the repository at this point in the history
  • Loading branch information
halx99 authored Aug 21, 2024
1 parent 2ecdd78 commit f14276c
Show file tree
Hide file tree
Showing 505 changed files with 5,160 additions and 4,008 deletions.
2 changes: 1 addition & 1 deletion 3rdparty/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@

## FreeType
- [![Upstream](https://img.shields.io/gitlab/v/tag/freetype/freetype?label=Upstream)](https://gitlab.freedesktop.org/freetype/freetype)
- Version: 2.13.2
- Version: 2.13.3
- License: BSD-style (The FreeType Project)

## Glad
Expand Down
16 changes: 9 additions & 7 deletions 3rdparty/freetype/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# CMakeLists.txt
#
# Copyright (C) 2013-2023 by
# Copyright (C) 2013-2024 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# Written originally by John Cary <[email protected]>
Expand Down Expand Up @@ -110,7 +110,7 @@

# To minimize the number of cmake_policy() workarounds,
# CMake >= 3 is requested.
cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.0...3.5)

if (NOT CMAKE_VERSION VERSION_LESS 3.3)
# Allow symbol visibility settings also on static libraries. CMake < 3.3
Expand Down Expand Up @@ -164,7 +164,7 @@ project(freetype C)

set(VERSION_MAJOR "2")
set(VERSION_MINOR "13")
set(VERSION_PATCH "2")
set(VERSION_PATCH "3")

# Generate LIBRARY_VERSION and LIBRARY_SOVERSION.
set(LIBTOOL_REGEX "version_info='([0-9]+):([0-9]+):([0-9]+)'")
Expand Down Expand Up @@ -265,6 +265,8 @@ if (NOT FT_DISABLE_PNG)
else ()
find_package(PNG)
endif ()
# FreePNG calls FindZLIB so unset ZLIB_FOUND to respect FT_DISABLE_ZLIB
unset(ZLIB_FOUND)
endif ()

if (NOT FT_DISABLE_ZLIB)
Expand Down Expand Up @@ -297,7 +299,7 @@ if (NOT FT_DISABLE_BROTLI)
endif ()

# Create the configuration file
if (UNIX)
if (UNIX AND NOT WIN32)
check_include_file("unistd.h" HAVE_UNISTD_H)
check_include_file("fcntl.h" HAVE_FCNTL_H)

Expand Down Expand Up @@ -423,10 +425,10 @@ set(BASE_SRCS
src/winfonts/winfnt.c
)

if (UNIX)
list(APPEND BASE_SRCS "builds/unix/ftsystem.c")
elseif (WIN32)
if (WIN32)
list(APPEND BASE_SRCS "builds/windows/ftsystem.c")
elseif (UNIX)
list(APPEND BASE_SRCS "builds/unix/ftsystem.c")
else ()
list(APPEND BASE_SRCS "src/base/ftsystem.c")
endif ()
Expand Down
10 changes: 5 additions & 5 deletions 3rdparty/freetype/README
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FreeType 2.13.2
FreeType 2.13.3
===============

Homepage: https://www.freetype.org
Expand Down Expand Up @@ -32,9 +32,9 @@ sites. Go to

and download one of the following files.

freetype-doc-2.13.2.tar.xz
freetype-doc-2.13.2.tar.gz
ftdoc2132.zip
freetype-doc-2.13.3.tar.xz
freetype-doc-2.13.3.tar.gz
ftdoc2133.zip

To view the documentation online, go to

Expand Down Expand Up @@ -94,7 +94,7 @@ Enjoy!

----------------------------------------------------------------------

Copyright (C) 2006-2023 by
Copyright (C) 2006-2024 by
David Turner, Robert Wilhelm, and Werner Lemberg.

This file is part of the FreeType project, and may only be used,
Expand Down
2 changes: 1 addition & 1 deletion 3rdparty/freetype/README.git
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ address:

----------------------------------------------------------------------

Copyright (C) 2005-2023 by
Copyright (C) 2005-2024 by
David Turner, Robert Wilhelm, and Werner Lemberg.

This file is part of the FreeType project, and may only be used,
Expand Down
2 changes: 1 addition & 1 deletion 3rdparty/freetype/builds/cmake/FindBrotliDec.cmake
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# FindBrotliDec.cmake
#
# Copyright (C) 2019-2023 by
# Copyright (C) 2019-2024 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# Written by Werner Lemberg <[email protected]>
Expand Down
2 changes: 1 addition & 1 deletion 3rdparty/freetype/builds/cmake/iOS.cmake
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# iOS.cmake
#
# Copyright (C) 2014-2023 by
# Copyright (C) 2014-2024 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# Written by David Wimsey <[email protected]>
Expand Down
2 changes: 1 addition & 1 deletion 3rdparty/freetype/builds/cmake/testbuild.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh -e

# Copyright (C) 2015-2023 by
# Copyright (C) 2015-2024 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
Expand Down
2 changes: 1 addition & 1 deletion 3rdparty/freetype/builds/mac/ftmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/* Mac FOND support. Written by [email protected]. */
/* Heavily Fixed by mpsuzuki, George Williams and Sean McBride */
/* */
/* Copyright (C) 1996-2023 by */
/* Copyright (C) 1996-2024 by */
/* Just van Rossum, David Turner, Robert Wilhelm, and Werner Lemberg. */
/* */
/* This file is part of the FreeType project, and may only be used, */
Expand Down
4 changes: 2 additions & 2 deletions 3rdparty/freetype/builds/unix/configure.raw
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# Process this file with autoconf to produce a configure script.
#
# Copyright (C) 2001-2023 by
# Copyright (C) 2001-2024 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
Expand All @@ -17,7 +17,7 @@ AC_CONFIG_SRCDIR([ftconfig.h.in])

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

version_info='26:1:20'
version_info='26:2:20'
AC_SUBST([version_info])
ft_version=`echo $version_info | tr : .`
AC_SUBST([ft_version])
Expand Down
2 changes: 1 addition & 1 deletion 3rdparty/freetype/builds/unix/ftconfig.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* UNIX-specific configuration file (specification only).
*
* Copyright (C) 1996-2023 by
* Copyright (C) 1996-2024 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
Expand Down
2 changes: 1 addition & 1 deletion 3rdparty/freetype/builds/unix/ftsystem.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* Unix-specific FreeType low-level system interface (body).
*
* Copyright (C) 1996-2023 by
* Copyright (C) 1996-2024 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
Expand Down
2 changes: 1 addition & 1 deletion 3rdparty/freetype/builds/windows/ftdebug.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* Debugging and logging component for Win32 (body).
*
* Copyright (C) 1996-2023 by
* Copyright (C) 1996-2024 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
Expand Down
17 changes: 9 additions & 8 deletions 3rdparty/freetype/builds/windows/ftsystem.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* Windows-specific FreeType low-level system interface (body).
*
* Copyright (C) 2021-2023 by
* Copyright (C) 2021-2024 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
Expand Down Expand Up @@ -196,8 +196,8 @@
}


/* non-desktop Universal Windows Platform */
#if defined( WINAPI_FAMILY ) && WINAPI_FAMILY != WINAPI_FAMILY_DESKTOP_APP
/* support for Universal Windows Platform UWP, formerly WinRT */
#ifdef _WINRT_DLL

#define PACK_DWORD64( hi, lo ) ( ( (DWORD64)(hi) << 32 ) | (DWORD)(lo) )

Expand Down Expand Up @@ -248,10 +248,11 @@
dwCreationDisposition, &createExParams );
}

#endif
#endif /* _WINRT_DLL */


#if defined( _WIN32_WCE )
/* support for Windows CE */
#ifdef _WIN32_WCE

/* malloc.h provides implementation of alloca()/_alloca() */
#include <malloc.h>
Expand Down Expand Up @@ -291,9 +292,9 @@
dwFlagsAndAttributes, hTemplateFile );
}

#endif

#endif /* _WIN32_WCE */

/* support for really old Windows */
#if defined( _WIN32_WCE ) || defined ( _WIN32_WINDOWS ) || \
!defined( _WIN32_WINNT ) || _WIN32_WINNT <= 0x0400

Expand All @@ -311,7 +312,7 @@
return TRUE;
}

#endif
#endif /* _WIN32_WCE || _WIN32_WINDOWS || _WIN32_WINNT <= 0x0400 */


/* documentation is in ftobjs.h */
Expand Down
2 changes: 1 addition & 1 deletion 3rdparty/freetype/devel/ft2build.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* FreeType 2 build and setup macros (development version).
*
* Copyright (C) 1996-2023 by
* Copyright (C) 1996-2024 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
Expand Down
18 changes: 17 additions & 1 deletion 3rdparty/freetype/devel/ftoption.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* User-selectable configuration macros (specification only).
*
* Copyright (C) 1996-2023 by
* Copyright (C) 1996-2024 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
Expand Down Expand Up @@ -757,6 +757,22 @@ FT_BEGIN_HEADER
#endif


/**************************************************************************
*
* Option `TT_CONFIG_OPTION_GPOS_KERNING` enables a basic GPOS kerning
* implementation (for TrueType fonts only). With this defined, FreeType
* is able to get kerning pair data from the GPOS 'kern' feature as well as
* legacy 'kern' tables; without this defined, FreeType will only be able
* to use legacy 'kern' tables.
*
* Note that FreeType does not support more advanced GPOS layout features;
* even the 'kern' feature implemented here doesn't handle more
* sophisticated kerning variants. Use a higher-level library like
* HarfBuzz instead for that.
*/
#define TT_CONFIG_OPTION_GPOS_KERNING


/*************************************************************************/
/*************************************************************************/
/**** ****/
Expand Down
Loading

0 comments on commit f14276c

Please sign in to comment.