From 625947c136e11f62b4b386e2ea20c240962eb264b7a59bd78270b1c42ad53738 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Mon, 24 Jun 2019 07:26:24 +0000 Subject: [PATCH] - Update to version 2.10.0 * A bunch of new functions has been added to access and process COLR/CPAL data of OpenType fonts with color-layered glyphs. * As a GSoC 2018 project, Nikhil Ramakrishnan completely overhauled and modernized the API reference. * The logic for computing the global ascender, descender, and height of OpenType fonts has been slightly adjusted for consistency. * `TT_Set_MM_Blend' could fail if called repeatedly with the same arguments. * The precision of handling deltas in Variation Fonts has been increased.The problem did only show up with multidimensional designspaces. * New function `FT_Library_SetLcdGeometry' to set up the geometry of LCD subpixels. * FreeType now uses the `defaultChar' property of PCF fonts to set the glyph for the undefined character at glyph index 0 (as FreeType already does for all other supported font formats). As a consequence, the order of glyphs of a PCF font if accessed with FreeType can be different now compared to previous versions. This change doesn't affect PCF font access with cmaps. * `FT_Select_Charmap' has been changed to allow parameter value `FT_ENCODING_NONE', which is valid for BDF, PCF, and Windows FNT formats to access built-in cmaps that don't have a predefined `FT_Encoding' value. * A previously reserved field in the `FT_GlyphSlotRec' structure now holds the glyph index. * The usual round of fuzzer bug fixes to better reject malformed fonts. OBS-URL: https://build.opensuse.org/package/show/M17N/freetype2?expand=0&rev=156 --- bugzilla-308961-cmex-workaround.patch | 8 ++-- don-t-mark-libpng-as-required-library.patch | 24 ++++++------ enable-infinality-subpixel-hinting.patch | 12 +++--- enable-long-family-names-by-default.patch | 14 +++---- enable-subpixel-rendering.patch | 16 ++++---- freetype-2.10.0.tar.bz2 | 3 ++ freetype-2.9.1.tar.bz2 | 3 -- freetype-doc-2.10.0.tar.bz2 | 3 ++ freetype-doc-2.9.1.tar.bz2 | 3 -- freetype2.changes | 43 +++++++++++++++++++++ freetype2.spec | 6 +-- ft2demos-2.10.0.tar.bz2 | 3 ++ ft2demos-2.9.1.tar.bz2 | 3 -- ft2demos.changes | 19 +++++++++ ft2demos.spec | 6 +-- overflow.patch | 8 ++-- 16 files changed, 118 insertions(+), 56 deletions(-) create mode 100644 freetype-2.10.0.tar.bz2 delete mode 100644 freetype-2.9.1.tar.bz2 create mode 100644 freetype-doc-2.10.0.tar.bz2 delete mode 100644 freetype-doc-2.9.1.tar.bz2 create mode 100644 ft2demos-2.10.0.tar.bz2 delete mode 100644 ft2demos-2.9.1.tar.bz2 diff --git a/bugzilla-308961-cmex-workaround.patch b/bugzilla-308961-cmex-workaround.patch index e6fc818..cefc1b8 100644 --- a/bugzilla-308961-cmex-workaround.patch +++ b/bugzilla-308961-cmex-workaround.patch @@ -2,11 +2,11 @@ src/base/ftobjs.c | 5 +++++ 1 file changed, 5 insertions(+) -Index: freetype-2.9.1/src/base/ftobjs.c +Index: freetype-2.10.0/src/base/ftobjs.c =================================================================== ---- freetype-2.9.1.orig/src/base/ftobjs.c -+++ freetype-2.9.1/src/base/ftobjs.c -@@ -2540,6 +2540,11 @@ +--- freetype-2.10.0.orig/src/base/ftobjs.c ++++ freetype-2.10.0/src/base/ftobjs.c +@@ -2584,6 +2584,11 @@ if ( FT_IS_SCALABLE( face ) ) { diff --git a/don-t-mark-libpng-as-required-library.patch b/don-t-mark-libpng-as-required-library.patch index 7408221..2cbae85 100644 --- a/don-t-mark-libpng-as-required-library.patch +++ b/don-t-mark-libpng-as-required-library.patch @@ -1,8 +1,8 @@ -Index: freetype-2.9.1/builds/unix/configure +Index: freetype-2.10.0/builds/unix/configure =================================================================== ---- freetype-2.9.1.orig/builds/unix/configure -+++ freetype-2.9.1/builds/unix/configure -@@ -14704,7 +14704,6 @@ esac +--- freetype-2.10.0.orig/builds/unix/configure ++++ freetype-2.10.0/builds/unix/configure +@@ -14848,7 +14848,6 @@ fi # entries in Requires.private are separated by commas; REQUIRES_PRIVATE="$zlib_reqpriv, \ $bzip2_reqpriv, \ @@ -10,7 +10,7 @@ Index: freetype-2.9.1/builds/unix/configure $harfbuzz_reqpriv" # beautify REQUIRES_PRIVATE=`echo "$REQUIRES_PRIVATE" \ -@@ -14718,7 +14717,6 @@ REQUIRES_PRIVATE=`echo "$REQUIRES_PRIVAT +@@ -14862,7 +14861,6 @@ REQUIRES_PRIVATE=`echo "$REQUIRES_PRIVAT LIBS_PRIVATE="$zlib_libspriv \ $bzip2_libspriv \ @@ -18,7 +18,7 @@ Index: freetype-2.9.1/builds/unix/configure $harfbuzz_libspriv \ $ft2_extra_libs" # beautify -@@ -14730,7 +14728,6 @@ LIBS_PRIVATE=`echo "$LIBS_PRIVATE" \ +@@ -14874,7 +14872,6 @@ LIBS_PRIVATE=`echo "$LIBS_PRIVATE" \ LIBSSTATIC_CONFIG="-lfreetype \ $zlib_libsstaticconf \ $bzip2_libsstaticconf \ @@ -26,11 +26,11 @@ Index: freetype-2.9.1/builds/unix/configure $harfbuzz_libsstaticconf \ $ft2_extra_libs" # remove -L/usr/lib and -L/usr/lib64 since `freetype-config' adds them later -Index: freetype-2.9.1/builds/unix/configure.raw +Index: freetype-2.10.0/builds/unix/configure.raw =================================================================== ---- freetype-2.9.1.orig/builds/unix/configure.raw -+++ freetype-2.9.1/builds/unix/configure.raw -@@ -960,7 +960,6 @@ esac +--- freetype-2.10.0.orig/builds/unix/configure.raw ++++ freetype-2.10.0/builds/unix/configure.raw +@@ -991,7 +991,6 @@ fi # entries in Requires.private are separated by commas; REQUIRES_PRIVATE="$zlib_reqpriv, \ $bzip2_reqpriv, \ @@ -38,7 +38,7 @@ Index: freetype-2.9.1/builds/unix/configure.raw $harfbuzz_reqpriv" # beautify REQUIRES_PRIVATE=`echo "$REQUIRES_PRIVATE" \ -@@ -974,7 +973,6 @@ REQUIRES_PRIVATE=`echo "$REQUIRES_PRIVAT +@@ -1005,7 +1004,6 @@ REQUIRES_PRIVATE=`echo "$REQUIRES_PRIVAT LIBS_PRIVATE="$zlib_libspriv \ $bzip2_libspriv \ @@ -46,7 +46,7 @@ Index: freetype-2.9.1/builds/unix/configure.raw $harfbuzz_libspriv \ $ft2_extra_libs" # beautify -@@ -986,7 +984,6 @@ LIBS_PRIVATE=`echo "$LIBS_PRIVATE" \ +@@ -1017,7 +1015,6 @@ LIBS_PRIVATE=`echo "$LIBS_PRIVATE" \ LIBSSTATIC_CONFIG="-lfreetype \ $zlib_libsstaticconf \ $bzip2_libsstaticconf \ diff --git a/enable-infinality-subpixel-hinting.patch b/enable-infinality-subpixel-hinting.patch index 8491c17..55abd35 100644 --- a/enable-infinality-subpixel-hinting.patch +++ b/enable-infinality-subpixel-hinting.patch @@ -1,10 +1,10 @@ -Index: freetype-2.9.1/include/freetype/config/ftoption.h +Index: freetype-2.10.0/include/freetype/config/ftoption.h =================================================================== ---- freetype-2.9.1.orig/include/freetype/config/ftoption.h -+++ freetype-2.9.1/include/freetype/config/ftoption.h +--- freetype-2.10.0.orig/include/freetype/config/ftoption.h ++++ freetype-2.10.0/include/freetype/config/ftoption.h @@ -658,8 +658,8 @@ FT_BEGIN_HEADER - /* [1] https://www.microsoft.com/typography/cleartype/truetypecleartype.aspx */ - /* */ + * https://www.microsoft.com/typography/cleartype/truetypecleartype.aspx + */ /* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING 1 */ -#define TT_CONFIG_OPTION_SUBPIXEL_HINTING 2 -/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING ( 1 | 2 ) */ @@ -12,4 +12,4 @@ Index: freetype-2.9.1/include/freetype/config/ftoption.h +#define TT_CONFIG_OPTION_SUBPIXEL_HINTING ( 1 | 2 ) - /*************************************************************************/ + /************************************************************************** diff --git a/enable-long-family-names-by-default.patch b/enable-long-family-names-by-default.patch index 4bc041d..587495d 100644 --- a/enable-long-family-names-by-default.patch +++ b/enable-long-family-names-by-default.patch @@ -1,11 +1,11 @@ -Index: freetype-2.9.1/include/freetype/config/ftoption.h +Index: freetype-2.10.0/include/freetype/config/ftoption.h =================================================================== ---- freetype-2.9.1.orig/include/freetype/config/ftoption.h -+++ freetype-2.9.1/include/freetype/config/ftoption.h -@@ -849,7 +849,7 @@ FT_BEGIN_HEADER - /* If this option is activated, it can be controlled with the */ - /* `no-long-family-names' property of the pcf driver module. */ - /* */ +--- freetype-2.10.0.orig/include/freetype/config/ftoption.h ++++ freetype-2.10.0/include/freetype/config/ftoption.h +@@ -847,7 +847,7 @@ FT_BEGIN_HEADER + * If this option is activated, it can be controlled with the + * `no-long-family-names` property of the 'pcf' driver module. + */ -/* #define PCF_CONFIG_OPTION_LONG_FAMILY_NAMES */ +#define PCF_CONFIG_OPTION_LONG_FAMILY_NAMES diff --git a/enable-subpixel-rendering.patch b/enable-subpixel-rendering.patch index 64ebd45..4563676 100644 --- a/enable-subpixel-rendering.patch +++ b/enable-subpixel-rendering.patch @@ -1,13 +1,13 @@ -Index: freetype-2.9.1/include/freetype/config/ftoption.h +Index: freetype-2.10.0/include/freetype/config/ftoption.h =================================================================== ---- freetype-2.9.1.orig/include/freetype/config/ftoption.h -+++ freetype-2.9.1/include/freetype/config/ftoption.h -@@ -122,7 +122,7 @@ FT_BEGIN_HEADER - /* rendering technology that produces excellent output without LCD */ - /* filtering. */ - /* */ +--- freetype-2.10.0.orig/include/freetype/config/ftoption.h ++++ freetype-2.10.0/include/freetype/config/ftoption.h +@@ -126,7 +126,7 @@ FT_BEGIN_HEADER + * macro is not defined, FreeType offers alternative LCD rendering + * technology that produces excellent output without LCD filtering. + */ -/* #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING */ +#define FT_CONFIG_OPTION_SUBPIXEL_RENDERING - /*************************************************************************/ + /************************************************************************** diff --git a/freetype-2.10.0.tar.bz2 b/freetype-2.10.0.tar.bz2 new file mode 100644 index 0000000..799e0a2 --- /dev/null +++ b/freetype-2.10.0.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fccc62928c65192fff6c98847233b28eb7ce05f12d2fea3f6cc90e8b4e5fbe06 +size 2743740 diff --git a/freetype-2.9.1.tar.bz2 b/freetype-2.9.1.tar.bz2 deleted file mode 100644 index a89f10d..0000000 --- a/freetype-2.9.1.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:db8d87ea720ea9d5edc5388fc7a0497bb11ba9fe972245e0f7f4c7e8b1e1e84d -size 1926385 diff --git a/freetype-doc-2.10.0.tar.bz2 b/freetype-doc-2.10.0.tar.bz2 new file mode 100644 index 0000000..8f40f2b --- /dev/null +++ b/freetype-doc-2.10.0.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5fdc0fd118a0a82ff36054988b82ea2fc0da2302962b51d14ca2880ee4959fb2 +size 2130601 diff --git a/freetype-doc-2.9.1.tar.bz2 b/freetype-doc-2.9.1.tar.bz2 deleted file mode 100644 index 3d9a803..0000000 --- a/freetype-doc-2.9.1.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:aa2f835ef8f50072630ddc48b9eb65f1f456014ffa3b5adddcb6bf390a3c5828 -size 2130292 diff --git a/freetype2.changes b/freetype2.changes index 9c54345..8346873 100644 --- a/freetype2.changes +++ b/freetype2.changes @@ -1,3 +1,46 @@ +------------------------------------------------------------------- +Mon Jun 24 07:09:55 UTC 2019 - Ismail Dönmez + +- Update to version 2.10.0 + * A bunch of new functions has been added to access and process + COLR/CPAL data of OpenType fonts with color-layered glyphs. + * As a GSoC 2018 project, Nikhil Ramakrishnan completely + overhauled and modernized the API reference. + * The logic for computing the global ascender, descender, and + height of OpenType fonts has been slightly adjusted for + consistency. + * `TT_Set_MM_Blend' could fail if called repeatedly with the same + arguments. + * The precision of handling deltas in Variation Fonts has been + increased.The problem did only show up with multidimensional + designspaces. + * New function `FT_Library_SetLcdGeometry' to set up the geometry + of LCD subpixels. + * FreeType now uses the `defaultChar' property of PCF fonts to set + the glyph for the undefined character at glyph index 0 (as + FreeType already does for all other supported font formats). As + a consequence, the order of glyphs of a PCF font if accessed + with FreeType can be different now compared to previous + versions. + This change doesn't affect PCF font access with cmaps. + * `FT_Select_Charmap' has been changed to allow parameter value + `FT_ENCODING_NONE', which is valid for BDF, PCF, and Windows FNT + formats to access built-in cmaps that don't have a predefined + `FT_Encoding' value. + * A previously reserved field in the `FT_GlyphSlotRec' structure + now holds the glyph index. + * The usual round of fuzzer bug fixes to better reject malformed + fonts. + * `FT_Outline_New_Internal' and `FT_Outline_Done_Internal' have + been removed.These two functions were public by oversight only + and were never documented. + * A new function `FT_Error_String' returns descriptions of error + codes if configuration macro FT_CONFIG_OPTION_ERROR_STRINGS is + defined. + * `FT_Set_MM_WeightVector' and `FT_Get_MM_WeightVector' are new + functions limited to Adobe MultiMaster fonts to directly set and + get the weight vector. + ------------------------------------------------------------------- Sat Oct 27 11:54:18 UTC 2018 - Ismail Dönmez diff --git a/freetype2.spec b/freetype2.spec index 242090a..681adc2 100644 --- a/freetype2.spec +++ b/freetype2.spec @@ -1,7 +1,7 @@ # # spec file for package freetype2 # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,9 +16,9 @@ # -%define doc_version 2.9.1 +%define doc_version 2.10.0 Name: freetype2 -Version: 2.9.1 +Version: 2.10.0 Release: 0 Summary: A TrueType Font Library License: SUSE-Freetype OR GPL-2.0-or-later diff --git a/ft2demos-2.10.0.tar.bz2 b/ft2demos-2.10.0.tar.bz2 new file mode 100644 index 0000000..0e41fde --- /dev/null +++ b/ft2demos-2.10.0.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0466f9c2cd609349b0bd1f1b7b85b1bffc52f72eb492a7195552d86e666d06ba +size 237599 diff --git a/ft2demos-2.9.1.tar.bz2 b/ft2demos-2.9.1.tar.bz2 deleted file mode 100644 index e131ee6..0000000 --- a/ft2demos-2.9.1.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:806eb6363ee5963174a6740f9b7893377912165899c2c1f6372c422aab818c6a -size 233462 diff --git a/ft2demos.changes b/ft2demos.changes index 01cd7b1..bec423d 100644 --- a/ft2demos.changes +++ b/ft2demos.changes @@ -1,3 +1,22 @@ +------------------------------------------------------------------- +Mon Jun 24 07:15:45 UTC 2019 - Ismail Dönmez + +- Update to version 2.10.0 + * The `ftdump' demo program has new options `-c' and `-C' to + display charmaps in compact and detailed format, respectively. + Option `-V' has been removed. + * The `ftview', `ftstring', and `ftgrid' demo programs use a new + command line option `-d' to specify the program window's width, + height, and color depth. + * The `ftview' demo program now displays red boxes for zero-width + glyphs. + * `ftglyph' has limited support to display fonts with + color-layered glyphs.This will be improved later on. + * `ftgrid' can now display bitmap fonts also. + * The `ttdebug' demo program has a new option `-f' to select a + member of a TrueType collection (TTC). + * Other various improvements to the demo programs. + ------------------------------------------------------------------- Thu Feb 7 16:59:15 UTC 2019 - Marguerite Su diff --git a/ft2demos.spec b/ft2demos.spec index d23d27b..1ace964 100644 --- a/ft2demos.spec +++ b/ft2demos.spec @@ -1,7 +1,7 @@ # # spec file for package ft2demos # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,9 +16,9 @@ # -%define freetype_version 2.9.1 +%define freetype_version 2.10.0 Name: ft2demos -Version: 2.9.1 +Version: 2.10.0 Release: 0 Summary: Freetype2 Utilities and Demo Programs License: GPL-2.0-or-later diff --git a/overflow.patch b/overflow.patch index 0b3f021..1a8207b 100644 --- a/overflow.patch +++ b/overflow.patch @@ -1,8 +1,8 @@ -Index: ft2demos-2.6/src/ttdebug.c +Index: ft2demos-2.10.0/src/ttdebug.c =================================================================== ---- ft2demos-2.6.orig/src/ttdebug.c -+++ ft2demos-2.6/src/ttdebug.c -@@ -1910,11 +1910,11 @@ +--- ft2demos-2.10.0.orig/src/ttdebug.c ++++ ft2demos-2.10.0/src/ttdebug.c +@@ -2024,11 +2024,11 @@ FT_Library_Version( library, &major, &minor, &patch );