aboutsummaryrefslogtreecommitdiff
path: root/graphics/fontmatrix/fontmatrix-0.9.99-adapt-to-icu-56.patch
diff options
context:
space:
mode:
authorLarry Hajali <larryhaja@gmail.com>2016-02-07 10:49:47 -0800
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-02-08 23:43:24 +0700
commit2355494a80c4503f4f51ab8fb77373cd17823f6e (patch)
tree236833d1568b5b9720b7f0027158b07f5fef057a /graphics/fontmatrix/fontmatrix-0.9.99-adapt-to-icu-56.patch
parent0898924fccf16f08aacf312c587a0720d671ce98 (diff)
graphics/fontmatrix: fix build
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'graphics/fontmatrix/fontmatrix-0.9.99-adapt-to-icu-56.patch')
-rw-r--r--graphics/fontmatrix/fontmatrix-0.9.99-adapt-to-icu-56.patch47
1 files changed, 47 insertions, 0 deletions
diff --git a/graphics/fontmatrix/fontmatrix-0.9.99-adapt-to-icu-56.patch b/graphics/fontmatrix/fontmatrix-0.9.99-adapt-to-icu-56.patch
new file mode 100644
index 0000000000000..56d171a5d3e33
--- /dev/null
+++ b/graphics/fontmatrix/fontmatrix-0.9.99-adapt-to-icu-56.patch
@@ -0,0 +1,47 @@
+diff -ur old.fontmatrix-0.9.99-Source/src/icushaper.cpp fontmatrix-0.9.99-Source/src/icushaper.cpp
+--- old.fontmatrix-0.9.99-Source/src/icushaper.cpp 2011-10-03 08:02:54.369203955 +0200
++++ fontmatrix-0.9.99-Source/src/icushaper.cpp 2015-10-29 12:58:30.806886446 +0100
+@@ -248,7 +248,7 @@
+
+ }
+
+-const void * IcuFontImpl::getFontTable ( LETag tableTag ) const
++const void * IcuFontImpl::getFontTable ( LETag tableTag, size_t &olength ) const
+ {
+ // qDebug()<< "IcuFontImpl::getFontTable" << OTF_tag_name( tableTag );
+ FT_Face face ( otf->face() );
+@@ -263,13 +263,21 @@
+ FT_Load_Sfnt_Table ( face, tableTag, 0, bA, &length );
+
+ regTables( tableTag, bA );
++ olength = length;
+ return (const void*) tables.value(tableTag);
+ }
+
+ }
++ olength = length;
+ return 0;
+ }
+
++const void * IcuFontImpl::getFontTable ( LETag tableTag ) const
++{
++ size_t length(0);
++ return getFontTable( tableTag, length);
++}
++
+ le_int32 IcuFontImpl::getUnitsPerEM() const
+ {
+ return otf->face()->units_per_EM;
+diff -ur old.fontmatrix-0.9.99-Source/src/icushaper.h fontmatrix-0.9.99-Source/src/icushaper.h
+--- old.fontmatrix-0.9.99-Source/src/icushaper.h 2011-10-03 08:02:54.363203913 +0200
++++ fontmatrix-0.9.99-Source/src/icushaper.h 2015-10-29 12:55:57.983050904 +0100
+@@ -27,7 +27,8 @@
+ ~IcuFontImpl();
+ // implements pure virtual methods of LEFontInstance
+
+- const void* getFontTable(LETag tableTag ) const;
++ const void* getFontTable(LETag tableTag, size_t &length ) const;
++ const void* getFontTable(LETag tableTag ) const; // DEPRECATED
+ le_bool canDisplay (LEUnicode32 ch) const {return true;}
+ le_int32 getUnitsPerEM () const;
+ LEGlyphID mapCharToGlyph (LEUnicode32 ch) const ;