summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/harfbuzz/tests
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@nokia.com>2009-11-06 10:58:38 (GMT)
committerLars Knoll <lars.knoll@nokia.com>2009-11-06 11:05:43 (GMT)
commitb8a8110ead6fe5d4a985fe9d486dd8f470aa24eb (patch)
tree12ec42d0183736b00116c0b3e4dbb488f87a3b59 /src/3rdparty/harfbuzz/tests
parent64d38ba23b4acc46fdb9145f1953315573e3f8dc (diff)
downloadQt-b8a8110ead6fe5d4a985fe9d486dd8f470aa24eb.zip
Qt-b8a8110ead6fe5d4a985fe9d486dd8f470aa24eb.tar.gz
Qt-b8a8110ead6fe5d4a985fe9d486dd8f470aa24eb.tar.bz2
update harfbuzz once again, adding N'Ko support
integrate/update to change 797fe54d9ebbafb0cdc00705c008ea09e7ac1e9e from harfbuzz: commit 797fe54d9ebbafb0cdc00705c008ea09e7ac1e9e Author: Lars Knoll <lars.knoll@nokia.com> Date: Fri Nov 6 11:56:44 2009 +0100 add N'Ko support to the arabic shaper Long outstanding bug report for Qt. See http://bugreports.qt.nokia.com/browse/QTBUG-1042 Task-number: part of QTBUG-1042 Reviewed-by: Gunnar
Diffstat (limited to 'src/3rdparty/harfbuzz/tests')
-rw-r--r--src/3rdparty/harfbuzz/tests/shaping/main.cpp35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/3rdparty/harfbuzz/tests/shaping/main.cpp b/src/3rdparty/harfbuzz/tests/shaping/main.cpp
index 41f2dbb..12fa7c4 100644
--- a/src/3rdparty/harfbuzz/tests/shaping/main.cpp
+++ b/src/3rdparty/harfbuzz/tests/shaping/main.cpp
@@ -181,6 +181,7 @@ private slots:
void sinhala();
void khmer();
+ void nko();
void linearB();
};
@@ -1075,6 +1076,40 @@ void tst_QScriptEngine::khmer()
}
}
+void tst_QScriptEngine::nko()
+{
+ {
+ FT_Face face = loadFace("DejaVuSans.ttf");
+ if (face) {
+ const ShapeTable shape_table [] = {
+ { { 0x7ca, 0x0 },
+ { 0x5c1, 0x0 } },
+ { { 0x7ca, 0x7ca, 0x0 },
+ { 0x14db, 0x14d9, 0x0 } },
+ { { 0x7ca, 0x7fa, 0x7ca, 0x0 },
+ { 0x14db, 0x5ec, 0x14d9, 0x0 } },
+ { { 0x7ca, 0x7f3, 0x7ca, 0x0 },
+ { 0x14db, 0x5e7, 0x14d9, 0x0 } },
+ { { 0x7ca, 0x7f3, 0x7fa, 0x7ca, 0x0 },
+ { 0x14db, 0x5e7, 0x5ec, 0x14d9, 0x0 } },
+ { {0}, {0} }
+ };
+
+
+ const ShapeTable *s = shape_table;
+ while (s->unicode[0]) {
+ QVERIFY( shaping(face, s, HB_Script_Nko) );
+ ++s;
+ }
+
+ FT_Done_Face(face);
+ } else {
+ QSKIP("couln't find DejaVuSans.ttf", SkipAll);
+ }
+ }
+}
+
+
void tst_QScriptEngine::linearB()
{
{