Accepting request 209891 from home:sumski:branches:M17N
Update to version 2.5.1 OBS-URL: https://build.opensuse.org/request/show/209891 OBS-URL: https://build.opensuse.org/package/show/M17N/freetype2?expand=0&rev=80
This commit is contained in:
parent
2b1fa4018b
commit
5bd93ea7e5
186
fix-compile-in-non-debug.patch
Normal file
186
fix-compile-in-non-debug.patch
Normal file
@ -0,0 +1,186 @@
|
||||
From 23d47f17fdb963fb0722a4ad2d9eb8fd150aba5a Mon Sep 17 00:00:00 2001
|
||||
From: Werner Lemberg <wl@gnu.org>
|
||||
Date: Wed, 27 Nov 2013 09:23:44 +0000
|
||||
Subject: [ftgrid] Fix compilation in non-debug mode.
|
||||
|
||||
* src/ftgrid.c: Guard autofit dump functions with FT_DEBUG_AUTOFIT
|
||||
clause.
|
||||
Update prototypes.
|
||||
(grid_hint_draw_segment): Guard with FT_DEBUG_AUTOFIT clause.
|
||||
(grid_status_draw_outline): Guard call to `grid_hint_draw_segment'
|
||||
with FT_DEBUG_AUTOFIT clause.
|
||||
(Process_Event) <'1'>, <'2'>, <'3'>: Don't mess around with trace
|
||||
levels, which should always stay internal to the FreeType library.
|
||||
Update calls to dump functions.
|
||||
---
|
||||
diff --git a/ChangeLog b/ChangeLog
|
||||
index 2cd9331..676a7db 100644
|
||||
--- a/ChangeLog
|
||||
+++ b/ChangeLog
|
||||
@@ -1,3 +1,17 @@
|
||||
+2013-11-27 Werner Lemberg <wl@gnu.org>
|
||||
+
|
||||
+ [ftgrid] Fix compilation in non-debug mode.
|
||||
+
|
||||
+ * src/ftgrid.c: Guard autofit dump functions with FT_DEBUG_AUTOFIT
|
||||
+ clause.
|
||||
+ Update prototypes.
|
||||
+ (grid_hint_draw_segment): Guard with FT_DEBUG_AUTOFIT clause.
|
||||
+ (grid_status_draw_outline): Guard call to `grid_hint_draw_segment'
|
||||
+ with FT_DEBUG_AUTOFIT clause.
|
||||
+ (Process_Event) <'1'>, <'2'>, <'3'>: Don't mess around with trace
|
||||
+ levels, which should always stay internal to the FreeType library.
|
||||
+ Update calls to dump functions.
|
||||
+
|
||||
2013-11-25 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
* Version 2.5.1 released.
|
||||
diff --git a/src/ftgrid.c b/src/ftgrid.c
|
||||
index e5967e6..37e168f 100644
|
||||
--- a/src/ftgrid.c
|
||||
+++ b/src/ftgrid.c
|
||||
@@ -47,6 +47,7 @@
|
||||
#define N_CFF_HINTING_ENGINES 2
|
||||
|
||||
|
||||
+#ifdef FT_DEBUG_AUTOFIT
|
||||
/* these variables, structures and declarations are for */
|
||||
/* communication with the debugger in the autofit module; */
|
||||
/* normal programs don't need this */
|
||||
@@ -62,11 +63,14 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
extern void
|
||||
- af_glyph_hints_dump_segments( AF_GlyphHints hints );
|
||||
+ af_glyph_hints_dump_segments( AF_GlyphHints hints,
|
||||
+ FT_Bool to_stdout );
|
||||
extern void
|
||||
- af_glyph_hints_dump_points( AF_GlyphHints hints );
|
||||
+ af_glyph_hints_dump_points( AF_GlyphHints hints,
|
||||
+ FT_Bool to_stdout );
|
||||
extern void
|
||||
- af_glyph_hints_dump_edges( AF_GlyphHints hints );
|
||||
+ af_glyph_hints_dump_edges( AF_GlyphHints hints,
|
||||
+ FT_Bool to_stdout );
|
||||
extern FT_Error
|
||||
af_glyph_hints_get_num_segments( AF_GlyphHints hints,
|
||||
FT_Int dimension,
|
||||
@@ -80,6 +84,8 @@
|
||||
}
|
||||
#endif
|
||||
|
||||
+#endif /* FT_DEBUG_AUTOFIT */
|
||||
+
|
||||
typedef struct GridStatusRec_
|
||||
{
|
||||
int width;
|
||||
@@ -263,6 +269,8 @@
|
||||
}
|
||||
|
||||
|
||||
+#ifdef FT_DEBUG_AUTOFIT
|
||||
+
|
||||
static void
|
||||
grid_hint_draw_segment( GridStatus st,
|
||||
AF_GlyphHints hints )
|
||||
@@ -305,6 +313,8 @@
|
||||
}
|
||||
}
|
||||
|
||||
+#endif /* FT_DEBUG_AUTOFIT */
|
||||
+
|
||||
|
||||
static void
|
||||
ft_bitmap_draw( FT_Bitmap* bitmap,
|
||||
@@ -491,6 +501,7 @@
|
||||
|
||||
FTDemo_Get_Size( handle, &size );
|
||||
|
||||
+#ifdef FT_DEBUG_AUTOFIT
|
||||
/* Draw segment before drawing glyph. */
|
||||
if ( status.do_segment )
|
||||
{
|
||||
@@ -508,6 +519,7 @@
|
||||
|
||||
_af_debug_disable_horz_hints = !st->do_horz_hints;
|
||||
_af_debug_disable_vert_hints = !st->do_vert_hints;
|
||||
+#endif
|
||||
|
||||
if ( FT_Load_Glyph( size->face, st->Num,
|
||||
handle->load_flags | FT_LOAD_NO_BITMAP ) )
|
||||
@@ -849,67 +861,28 @@
|
||||
break;
|
||||
|
||||
#ifdef FT_DEBUG_AUTOFIT
|
||||
- /* we use some internal FreeType functions and variables */
|
||||
- /* to manipulate the trace level for the dumping functions */
|
||||
-
|
||||
case grKEY( '1' ):
|
||||
if ( handle->hinted && handle->autohint )
|
||||
{
|
||||
- if ( FT_Trace_Get_Count() )
|
||||
- {
|
||||
- int old_trace_level = ft_trace_levels[trace_afhints];
|
||||
-
|
||||
-
|
||||
- ft_trace_levels[trace_afhints] = 7;
|
||||
- status.header = "dumping glyph edges to stdout";
|
||||
- af_glyph_hints_dump_edges( _af_debug_hints );
|
||||
- ft_trace_levels[trace_afhints] = old_trace_level;
|
||||
- }
|
||||
- else
|
||||
- status.header = "need FreeType tracing support for dumping";
|
||||
+ status.header = "dumping glyph edges to stdout";
|
||||
+ af_glyph_hints_dump_edges( _af_debug_hints, 1 );
|
||||
}
|
||||
- else
|
||||
- status.header = "need autofit mode for edge dumping";
|
||||
break;
|
||||
|
||||
case grKEY( '2' ):
|
||||
if ( handle->hinted && handle->autohint )
|
||||
{
|
||||
- if ( FT_Trace_Get_Count() )
|
||||
- {
|
||||
- int old_trace_level = ft_trace_levels[trace_afhints];
|
||||
-
|
||||
-
|
||||
- ft_trace_levels[trace_afhints] = 7;
|
||||
- status.header = "dumping glyph segments to stdout";
|
||||
- af_glyph_hints_dump_segments( _af_debug_hints );
|
||||
- ft_trace_levels[trace_afhints] = old_trace_level;
|
||||
- }
|
||||
- else
|
||||
- status.header = "need FreeType tracing support for dumping";
|
||||
+ status.header = "dumping glyph segments to stdout";
|
||||
+ af_glyph_hints_dump_segments( _af_debug_hints, 1 );
|
||||
}
|
||||
- else
|
||||
- status.header = "need autofit mode for segment dumping";
|
||||
break;
|
||||
|
||||
case grKEY( '3' ):
|
||||
if ( handle->hinted && handle->autohint )
|
||||
{
|
||||
- if ( FT_Trace_Get_Count() )
|
||||
- {
|
||||
- int old_trace_level = ft_trace_levels[trace_afhints];
|
||||
-
|
||||
-
|
||||
- ft_trace_levels[trace_afhints] = 7;
|
||||
- status.header = "dumping glyph points to stdout";
|
||||
- af_glyph_hints_dump_points( _af_debug_hints );
|
||||
- ft_trace_levels[trace_afhints] = old_trace_level;
|
||||
- }
|
||||
- else
|
||||
- status.header = "need FreeType tracing support for dumping";
|
||||
+ status.header = "dumping glyph points to stdout";
|
||||
+ af_glyph_hints_dump_points( _af_debug_hints, 1 );
|
||||
}
|
||||
- else
|
||||
- status.header = "need autofit mode for point dumping";
|
||||
break;
|
||||
#endif /* FT_DEBUG_AUTOFIT */
|
||||
|
||||
--
|
||||
cgit v0.9.0.2
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:57bce5b37989577aa8b4a588426839f6bf39bcc3869748cb18f6827df251f4e5
|
||||
size 1607037
|
3
freetype-2.5.1.tar.bz2
Normal file
3
freetype-2.5.1.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d715faa92b37980280c857ce9d356fff4361c5a7bd9b5c3f867fc24f598d8f45
|
||||
size 1677282
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:8c1af657e8845830278abd019c49288e6b0f94409a6d4506c73a29f0fc062a4d
|
||||
size 106728
|
3
freetype-doc-2.5.1.tar.bz2
Normal file
3
freetype-doc-2.5.1.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:57891fa2caf0185bca5d2641ae6715a6e9675fcb83976d4b1838cce02b540f01
|
||||
size 109390
|
@ -1,7 +1,7 @@
|
||||
Index: freetype-2.4.11/include/freetype/config/ftoption.h
|
||||
Index: freetype-2.4.11/include/config/ftoption.h
|
||||
===================================================================
|
||||
--- freetype-2.4.11.orig/include/freetype/config/ftoption.h
|
||||
+++ freetype-2.4.11/include/freetype/config/ftoption.h
|
||||
--- freetype-2.4.11.orig/include/config/ftoption.h
|
||||
+++ freetype-2.4.11/include/config/ftoption.h
|
||||
@@ -92,7 +92,7 @@ FT_BEGIN_HEADER
|
||||
/* This is done to allow FreeType clients to run unmodified, forcing */
|
||||
/* them to display normal gray-level anti-aliased glyphs. */
|
||||
|
@ -1,3 +1,61 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Nov 27 19:31:42 UTC 2013 - hrvoje.senjan@gmail.com
|
||||
|
||||
- Update to version 2.5.1
|
||||
* For some WinFNT files, the last glyph wasn't displayed but
|
||||
incorrectly marked as invalid.
|
||||
* The vertical size of glyphs was incorrectly set after a call to
|
||||
`FT_GlyphSlot_Embolden', resulting in clipped glyphs.
|
||||
* Many fields of the `PCLT' table in SFNT based fonts (if accessed
|
||||
with `FT_Get_Sfnt_Table') were computed incorrectly.
|
||||
* In TrueType fonts, hinting of composite glyphs could sometimes
|
||||
deliver incorrect positions of components or even distorted
|
||||
shapes.
|
||||
* WOFF font format support has been added.
|
||||
* The auto-hinter now supports Hebrew. Greek and Cyrillic support
|
||||
has been improved.
|
||||
* Support for the forthcoming `OS/2' SFNT table version 5, as can
|
||||
be found e.g. in the `Sitka' font family for Windows 8.1.
|
||||
* The header file layout has been changed. After installation,
|
||||
all files are now located in `<prefix>/include/freetype2'.
|
||||
Applications that use (a) `freetype-config' or FreeType's
|
||||
`pkg-config' file to get the include directory for the compiler,
|
||||
and (b) the documented way for header inclusion like
|
||||
#include <ft2build.h> or #include FT_FREETYPE_H
|
||||
don't need any change to the source code.
|
||||
* The stem darkening feature of the new CFF engine can now be
|
||||
fine-tuned with the new `darkening-parameters' property.
|
||||
* `ftgrid' has been updated to toggle various engines with the `H'
|
||||
key, similar to `ftview' and `ftdiff'.
|
||||
* The functionality of `ttdebug' has been greatly enhanced.
|
||||
. It now displays twilight, storage, and control value data; key
|
||||
* Better support of ARMv7 and x86_64 processors.
|
||||
* Apple's `sbix' color bitmap format is now supported.
|
||||
* Improved auto-hinter rendering for many TrueType fonts,
|
||||
especially in the range 20-40ppem.
|
||||
* A new face flag `FT_FACE_FLAG_COLOR' has been added (to be
|
||||
accessed with the macro `FT_HAS_COLOR').
|
||||
* `FT_Gzip_Uncompress' (modeled after zlib's `uncompress'
|
||||
function) has been added; this is a by-product of the newly
|
||||
added WOFF support.
|
||||
* Support for a build with `cmake' has been contributed by John
|
||||
Cary <cary@txcorp.com>.
|
||||
* Support for x64 builds with Visual C++ has been contributed by
|
||||
Kenneth Miller <kennethadammiller@yahoo.com>
|
||||
* Manual pages for most demo programs have been added.
|
||||
* The GETINFO bytecode instruction for TrueType fonts was buggy if
|
||||
used to retrieve subpixel hinting information. It was necessary
|
||||
to set selector bit 6 to get results for selector bits 7-10,
|
||||
which is wrong.
|
||||
* Improved computation of emulated vertical metrics for TrueType
|
||||
fonts.
|
||||
* Fixed horizontal start-up position of vertical phantom points in
|
||||
TrueType bytecode.
|
||||
- Rebase freetype2-subpixel.patch to current release
|
||||
- Added fix-compile-in-non-debug.patch, fixes release build of ftdemos
|
||||
- Added overflow.patch for resolving post-build-check detected error:
|
||||
I: Statement is overflowing a buffer
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 3 08:31:13 UTC 2013 - idonmez@suse.com
|
||||
|
||||
|
@ -26,8 +26,8 @@ BuildRequires: zlib-devel
|
||||
Obsoletes: freetype2-64bit
|
||||
%endif
|
||||
#
|
||||
%define doc_version 2.5.0
|
||||
Version: 2.5.0.1
|
||||
%define doc_version 2.5.1
|
||||
Version: 2.5.1
|
||||
Release: 0
|
||||
Summary: A TrueType Font Library
|
||||
License: SUSE-Freetype or GPL-2.0+
|
||||
@ -39,6 +39,10 @@ Source3: baselibs.conf
|
||||
Patch1: freetype2-bitmap-foundry.patch
|
||||
Patch308961: bugzilla-308961-cmex-workaround.patch
|
||||
Patch200: freetype2-subpixel.patch
|
||||
# PATCH-FIX-UPSTREAM fix-compile-in-non-debug.patch
|
||||
Patch201: fix-compile-in-non-debug.patch
|
||||
# PATCH-FIX-UPSTREAM overflow.patch -- I: Statement is overflowing a buffer
|
||||
Patch202: overflow.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:490c3487561119c60b874ae2df5c27fedce320f8ab38b2832d4baf5a28120f34
|
||||
size 172671
|
3
ft2demos-2.5.1.tar.bz2
Normal file
3
ft2demos-2.5.1.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:034543b5d1033fd262326ee58540f2b0744cd0dc34988a8be315fc0260056df0
|
||||
size 186036
|
@ -1,3 +1,61 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Nov 27 19:31:42 UTC 2013 - hrvoje.senjan@gmail.com
|
||||
|
||||
- Update to version 2.5.1
|
||||
* For some WinFNT files, the last glyph wasn't displayed but
|
||||
incorrectly marked as invalid.
|
||||
* The vertical size of glyphs was incorrectly set after a call to
|
||||
`FT_GlyphSlot_Embolden', resulting in clipped glyphs.
|
||||
* Many fields of the `PCLT' table in SFNT based fonts (if accessed
|
||||
with `FT_Get_Sfnt_Table') were computed incorrectly.
|
||||
* In TrueType fonts, hinting of composite glyphs could sometimes
|
||||
deliver incorrect positions of components or even distorted
|
||||
shapes.
|
||||
* WOFF font format support has been added.
|
||||
* The auto-hinter now supports Hebrew. Greek and Cyrillic support
|
||||
has been improved.
|
||||
* Support for the forthcoming `OS/2' SFNT table version 5, as can
|
||||
be found e.g. in the `Sitka' font family for Windows 8.1.
|
||||
* The header file layout has been changed. After installation,
|
||||
all files are now located in `<prefix>/include/freetype2'.
|
||||
Applications that use (a) `freetype-config' or FreeType's
|
||||
`pkg-config' file to get the include directory for the compiler,
|
||||
and (b) the documented way for header inclusion like
|
||||
#include <ft2build.h> or #include FT_FREETYPE_H
|
||||
don't need any change to the source code.
|
||||
* The stem darkening feature of the new CFF engine can now be
|
||||
fine-tuned with the new `darkening-parameters' property.
|
||||
* `ftgrid' has been updated to toggle various engines with the `H'
|
||||
key, similar to `ftview' and `ftdiff'.
|
||||
* The functionality of `ttdebug' has been greatly enhanced.
|
||||
. It now displays twilight, storage, and control value data; key
|
||||
* Better support of ARMv7 and x86_64 processors.
|
||||
* Apple's `sbix' color bitmap format is now supported.
|
||||
* Improved auto-hinter rendering for many TrueType fonts,
|
||||
especially in the range 20-40ppem.
|
||||
* A new face flag `FT_FACE_FLAG_COLOR' has been added (to be
|
||||
accessed with the macro `FT_HAS_COLOR').
|
||||
* `FT_Gzip_Uncompress' (modeled after zlib's `uncompress'
|
||||
function) has been added; this is a by-product of the newly
|
||||
added WOFF support.
|
||||
* Support for a build with `cmake' has been contributed by John
|
||||
Cary <cary@txcorp.com>.
|
||||
* Support for x64 builds with Visual C++ has been contributed by
|
||||
Kenneth Miller <kennethadammiller@yahoo.com>
|
||||
* Manual pages for most demo programs have been added.
|
||||
* The GETINFO bytecode instruction for TrueType fonts was buggy if
|
||||
used to retrieve subpixel hinting information. It was necessary
|
||||
to set selector bit 6 to get results for selector bits 7-10,
|
||||
which is wrong.
|
||||
* Improved computation of emulated vertical metrics for TrueType
|
||||
fonts.
|
||||
* Fixed horizontal start-up position of vertical phantom points in
|
||||
TrueType bytecode.
|
||||
- Rebase freetype2-subpixel.patch to current release
|
||||
- Added fix-compile-in-non-debug.patch, fixes release build of ftdemos
|
||||
- Added overflow.patch for resolving post-build-check detected error:
|
||||
I: Statement is overflowing a buffer
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 3 08:33:20 UTC 2013 - idonmez@suse.com
|
||||
|
||||
|
@ -17,17 +17,21 @@
|
||||
|
||||
|
||||
Name: ft2demos
|
||||
Version: 2.5.0
|
||||
Version: 2.5.1
|
||||
Release: 0
|
||||
Summary: Freetype2 Utilities and Demo Programs
|
||||
License: GPL-2.0+
|
||||
Group: Productivity/Publishing/Other
|
||||
%define freetype_version 2.5.0.1
|
||||
%define freetype_version 2.5.1
|
||||
Url: http://www.freetype.org
|
||||
Source0: http://savannah.nongnu.org/download/freetype/freetype-%{freetype_version}.tar.bz2
|
||||
Source1: http://savannah.nongnu.org/download/freetype/ft2demos-%{version}.tar.bz2
|
||||
Patch308961: bugzilla-308961-cmex-workaround.patch
|
||||
Patch200: freetype2-subpixel.patch
|
||||
# PATCH-FIX-UPSTREAM fix-compile-in-non-debug.patch
|
||||
Patch201: fix-compile-in-non-debug.patch
|
||||
# PATCH-FIX-UPSTREAM overflow.patch -- I: Statement is overflowing a buffer
|
||||
Patch202: overflow.patch
|
||||
BuildRequires: libpng-devel
|
||||
BuildRequires: xorg-x11-devel
|
||||
Conflicts: dtc
|
||||
@ -49,6 +53,10 @@ Freetype2 utilities and demo programs.
|
||||
%if %{enable_subpixel_rendering}
|
||||
%patch200 -p 1 -b .subpixel
|
||||
%endif
|
||||
pushd ../ft2demos-%{version}
|
||||
%patch201 -p1
|
||||
%patch202 -p1
|
||||
popd
|
||||
|
||||
%build
|
||||
export CFLAGS="%optflags -std=gnu99 -D_GNU_SOURCE $(getconf LFS_CFLAGS)"
|
||||
|
17
overflow.patch
Normal file
17
overflow.patch
Normal file
@ -0,0 +1,17 @@
|
||||
diff -Naur ft2demos-2.5.1/src/ttdebug.c ft2demos-2.5.1.new/src/ttdebug.c
|
||||
--- ft2demos-2.5.1/src/ttdebug.c 2013-11-05 12:31:57.452397772 +0100
|
||||
+++ ft2demos-2.5.1.new/src/ttdebug.c 2013-12-08 23:40:31.756506259 +0100
|
||||
@@ -1905,11 +1905,11 @@
|
||||
|
||||
FT_Library_Version( library, &major, &minor, &patch );
|
||||
|
||||
- offset = snprintf( version_string, 64 + 1,
|
||||
+ offset = snprintf( version_string, sizeof(version_string),
|
||||
"ttdebug (FreeType) %d.%d",
|
||||
major, minor );
|
||||
if ( patch )
|
||||
- offset = snprintf( version_string + offset, 64 + 1 - offset,
|
||||
+ offset = snprintf( version_string + offset, sizeof(version_string) - offset,
|
||||
".%d",
|
||||
patch );
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user