Skip to content

Commit

Permalink
Merge commit '920c5502cc3ddda88f6c7d85ee834ac611bb11cc'
Browse files Browse the repository at this point in the history
  • Loading branch information
Sibras committed Sep 23, 2023
2 parents 32da9b5 + 920c550 commit 77855af
Show file tree
Hide file tree
Showing 48 changed files with 949 additions and 2,566 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ project(freetype C)

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

# Generate LIBRARY_VERSION and LIBRARY_SOVERSION.
set(LIBTOOL_REGEX "version_info='([0-9]+):([0-9]+):([0-9]+)'")
Expand Down
8 changes: 4 additions & 4 deletions README
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FreeType 2.13.1
FreeType 2.13.2
===============

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.1.tar.xz
freetype-doc-2.13.1.tar.gz
ftdoc2131.zip
freetype-doc-2.13.2.tar.xz
freetype-doc-2.13.2.tar.gz
ftdoc2132.zip

To view the documentation online, go to

Expand Down
2 changes: 1 addition & 1 deletion builds/freetype.mk
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ refdoc:
$(PUBLIC_DIR)/config/*.h \
$(PUBLIC_DIR)/cache/*.h
@echo Building static site...
cd $(DOC_DIR) && mkdocs build
cd $(DOC_DIR) && $(PYTHON) -m mkdocs build
@echo Done.

# Variables for running `refdoc' with Python's `virtualenv'. The
Expand Down
31 changes: 13 additions & 18 deletions builds/toplevel.mk
Original file line number Diff line number Diff line change
Expand Up @@ -198,27 +198,22 @@ modules:
include $(TOP_DIR)/builds/modules.mk


# get FreeType version string, using a
# poor man's `sed' emulation with make's built-in string functions
# get FreeType version string using built-in string functions
#
hash := \#

work := $(strip $(shell $(CAT) \
$(subst /,$(SEP),$(TOP_DIR)/include/freetype/freetype.h)))
work := $(subst |,x,$(work))
work := $(subst $(space),|,$(work))
work := $(subst \#define|FREETYPE_MAJOR|,$(space),$(work))
work := $(word 2,$(work))
major := $(subst |,$(space),$(work))
major := $(firstword $(major))

work := $(subst \#define|FREETYPE_MINOR|,$(space),$(work))
work := $(word 2,$(work))
minor := $(subst |,$(space),$(work))
minor := $(firstword $(minor))

work := $(subst \#define|FREETYPE_PATCH|,$(space),$(work))
work := $(word 2,$(work))
patch := $(subst |,$(space),$(work))
patch := $(firstword $(patch))

work := $(subst $(hash)define$(space)FREETYPE_MAJOR$(space),MAjOR=,$(work))
work := $(subst $(hash)define$(space)FREETYPE_MINOR$(space),MInOR=,$(work))
work := $(subst $(hash)define$(space)FREETYPE_PATCH$(space),PAtCH=,$(work))

major := $(subst MAjOR=,,$(filter MAjOR=%,$(work)))
minor := $(subst MInOR=,,$(filter MInOR=%,$(work)))
patch := $(subst PAtCH=,,$(filter PAtCH=%,$(work)))

work :=

# ifneq ($(findstring x0x,x$(patch)x),)
# version := $(major).$(minor)
Expand Down
8 changes: 4 additions & 4 deletions builds/unix/configure.raw
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ AC_CONFIG_SRCDIR([ftconfig.h.in])

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

version_info='26:0:20'
version_info='26:1:20'
AC_SUBST([version_info])
ft_version=`echo $version_info | tr : .`
AC_SUBST([ft_version])
Expand Down Expand Up @@ -966,14 +966,14 @@ esac
AX_PTHREAD([have_pthread=yes], [have_pthread=no])

# Check for Python and docwriter

PYTHON_MIN_VERSION=3.5
have_py3=no
have_docwriter=no
PIP=pip

AC_CHECK_PROGS([PYTHON], [python3 python], [missing])
if test "x$PYTHON" != "xmissing"; then
AX_PROG_PYTHON_VERSION([3.5], [have_py3=yes], [])
AX_PROG_PYTHON_VERSION([$PYTHON_MIN_VERSION], [have_py3=yes], [])

if test "x$have_py3" = "xyes"; then
PIP="$PYTHON -m $PIP"
Expand Down Expand Up @@ -1162,7 +1162,7 @@ if test $have_docwriter = no; then
`make refdoc' will fail since pip package `docwriter' is not installed.
To install, run `$PIP install docwriter', or to use a Python
virtual environment, run `make refdoc-venv' (requires pip package
`virtualenv'). These operations require Python >= 3.5.
`virtualenv'). These operations require Python >= $PYTHON_MIN_VERSION.
])
fi

Expand Down
2 changes: 1 addition & 1 deletion builds/wince/vc2005-ce/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ <h1>
<li>PPC/SP WM6 (Windows Mobile 6)</li>
</ul>

It compiles the following libraries from the FreeType 2.13.1 sources:</p>
It compiles the following libraries from the FreeType 2.13.2 sources:</p>

<ul>
<pre>
Expand Down
2 changes: 1 addition & 1 deletion builds/wince/vc2008-ce/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ <h1>
<li>PPC/SP WM6 (Windows Mobile 6)</li>
</ul>

It compiles the following libraries from the FreeType 2.13.1 sources:</p>
It compiles the following libraries from the FreeType 2.13.2 sources:</p>

<ul>
<pre>
Expand Down
2 changes: 1 addition & 1 deletion builds/windows/vc2010/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ <h1>
<p>This directory contains solution and project files for
Visual&nbsp;C++&nbsp;2010 or newer, named <tt>freetype.sln</tt>,
and <tt>freetype.vcxproj</tt>. It compiles the following libraries
from the FreeType 2.13.1 sources:</p>
from the FreeType 2.13.2 sources:</p>

<ul>
<li>freetype.dll using 'Release' or 'Debug' configurations</li>
Expand Down
2 changes: 1 addition & 1 deletion builds/windows/visualc/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ <h1>
<p>This directory contains project files <tt>freetype.dsp</tt> for
Visual C++ 6.0, and <tt>freetype.vcproj</tt> for Visual C++ 2002
through 2008, which you might need to upgrade automatically.
It compiles the following libraries from the FreeType 2.13.1 sources:</p>
It compiles the following libraries from the FreeType 2.13.2 sources:</p>

<ul>
<li>freetype.dll using 'Release' or 'Debug' configurations</li>
Expand Down
2 changes: 1 addition & 1 deletion builds/windows/visualce/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ <h1>
<li>PPC/SP WM6 (Windows Mobile 6)</li>
</ul>

It compiles the following libraries from the FreeType 2.13.1 sources:</p>
It compiles the following libraries from the FreeType 2.13.2 sources:</p>

<ul>
<pre>
Expand Down
14 changes: 14 additions & 0 deletions docs/CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
CHANGES BETWEEN 2.13.1 and 2.13.2 (2023-Aug-25)

I. MISCELLANEOUS

- Better support for CFF2 variation fonts.

- TrueType interpreter version 38 (also known as 'Infinality') has
been removed.

- Improved OpenVMS support.


======================================================================

CHANGES BETWEEN 2.13.0 and 2.13.1 (2023-Jun-24)

I. MISCELLANEOUS
Expand Down
1 change: 1 addition & 0 deletions docs/VERSIONS.TXT
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ found on _most_ systems, but not all of them:

release libtool so
-------------------------------
2.13.2 26.1.20 6.20.1
2.13.1 26.0.20 6.20.0
2.13.0 25.0.19 6.19.0
2.12.1 24.3.18 6.18.3
Expand Down
2 changes: 1 addition & 1 deletion docs/freetype-config.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH FREETYPE-CONFIG 1 "June 2023" "FreeType 2.13.1"
.TH FREETYPE-CONFIG 1 "August 2023" "FreeType 2.13.2"
.
.
.SH NAME
Expand Down
2 changes: 1 addition & 1 deletion include/freetype/freetype.h
Original file line number Diff line number Diff line change
Expand Up @@ -5222,7 +5222,7 @@ FT_BEGIN_HEADER
*/
#define FREETYPE_MAJOR 2
#define FREETYPE_MINOR 13
#define FREETYPE_PATCH 1
#define FREETYPE_PATCH 2


/**************************************************************************
Expand Down
4 changes: 2 additions & 2 deletions include/freetype/internal/ftcalc.h
Original file line number Diff line number Diff line change
Expand Up @@ -332,9 +332,9 @@ FT_BEGIN_HEADER
* Based on geometric considerations we use the following inequality to
* identify a degenerate matrix.
*
* 50 * abs(xx*yy - xy*yx) < xx^2 + xy^2 + yx^2 + yy^2
* 32 * abs(xx*yy - xy*yx) < xx^2 + xy^2 + yx^2 + yy^2
*
* Value 50 is heuristic.
* Value 32 is heuristic.
*/
FT_BASE( FT_Bool )
FT_Matrix_Check( const FT_Matrix* matrix );
Expand Down
15 changes: 0 additions & 15 deletions include/freetype/internal/tttypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -1394,14 +1394,6 @@ FT_BEGIN_HEADER
* vert_metrics_offset ::
* The file offset of the 'vmtx' table.
*
* sph_found_func_flags ::
* Flags identifying special bytecode functions (used by the v38
* implementation of the bytecode interpreter).
*
* sph_compatibility_mode ::
* This flag is set if we are in ClearType backward compatibility mode
* (used by the v38 implementation of the bytecode interpreter).
*
* ebdt_start ::
* The file offset of the sbit data table (CBDT, bdat, etc.).
*
Expand Down Expand Up @@ -1597,13 +1589,6 @@ FT_BEGIN_HEADER
FT_ULong horz_metrics_offset;
FT_ULong vert_metrics_offset;

#ifdef TT_SUPPORT_SUBPIXEL_HINTING_INFINALITY
/* since 2.4.12 */
FT_ULong sph_found_func_flags; /* special functions found */
/* for this face */
FT_Bool sph_compatibility_mode;
#endif /* TT_SUPPORT_SUBPIXEL_HINTING_INFINALITY */

#ifdef TT_CONFIG_OPTION_EMBEDDED_BITMAPS
/* since 2.7 */
FT_ULong ebdt_start; /* either `CBDT', `EBDT', or `bdat' */
Expand Down
6 changes: 3 additions & 3 deletions src/autofit/afcjk.c
Original file line number Diff line number Diff line change
Expand Up @@ -1634,7 +1634,7 @@

stem_edge->pos = base_edge->pos + fitted_width;

FT_TRACE5(( " CJKLINK: edge %ld @%d (opos=%.2f) linked to %.2f,"
FT_TRACE5(( " CJKLINK: edge %td @%d (opos=%.2f) linked to %.2f,"
" dist was %.2f, now %.2f\n",
stem_edge - hints->axis[dim].edges, stem_edge->fpos,
(double)stem_edge->opos / 64,
Expand Down Expand Up @@ -1858,7 +1858,7 @@
continue;

#ifdef FT_DEBUG_LEVEL_TRACE
FT_TRACE5(( " CJKBLUE: edge %ld @%d (opos=%.2f) snapped to %.2f,"
FT_TRACE5(( " CJKBLUE: edge %td @%d (opos=%.2f) snapped to %.2f,"
" was %.2f\n",
edge1 - edges, edge1->fpos, (double)edge1->opos / 64,
(double)blue->fit / 64, (double)edge1->pos / 64 ));
Expand Down Expand Up @@ -1922,7 +1922,7 @@
/* this should not happen, but it's better to be safe */
if ( edge2->blue_edge )
{
FT_TRACE5(( "ASSERTION FAILED for edge %ld\n", edge2-edges ));
FT_TRACE5(( "ASSERTION FAILED for edge %td\n", edge2 - edges ));

af_cjk_align_linked_edge( hints, dim, edge2, edge );
edge->flags |= AF_EDGE_DONE;
Expand Down
Loading

0 comments on commit 77855af

Please sign in to comment.