summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorKhaled Hosny <khaled@aliftype.com>2023-04-02 15:47:33 +0200
committerKhaled Hosny <khaled@aliftype.com>2023-04-02 15:47:33 +0200
commitd26a0dcf3071ee428b3b4c436a0d156d3efcfe0d (patch)
tree9d487fa248d87f4ff6e637e8b6513f06fa2e4361 /tests
parent818b549bafbaef9323ceedffb3930113ae008af7 (diff)
downloadpango-script-itemize.tar.gz
itemize: Improve script itemizationscript-itemize
Merge marks, and other cluster extenders with the previous script. Logic copied from: https://searchfox.org/mozilla-central/rev/dbc0cd5615f9cd7337d3e05b7c3925af5f35c0ee/gfx/thebes/gfxScriptItemizer.cpp#113-122 Handling of script extensions is still missing as GLib does not seem to have an API to retrieve it. Fixes https://gitlab.gnome.org/GNOME/pango/-/issues/739
Diffstat (limited to 'tests')
-rw-r--r--tests/itemize/three.expected9
-rw-r--r--tests/itemize/three.items1
2 files changed, 10 insertions, 0 deletions
diff --git a/tests/itemize/three.expected b/tests/itemize/three.expected
new file mode 100644
index 00000000..eb45fbd3
--- /dev/null
+++ b/tests/itemize/three.expected
@@ -0,0 +1,9 @@
+<span font="Cantarell 11" fallback="false">عַرַبִ</span>
+
+Items: عַرַبִ
+Chars: 6(0)
+Font: Cantarell 11
+Script: arabic
+Lang: ar
+Bidi: 1
+Attrs: 0 12 fallback false
diff --git a/tests/itemize/three.items b/tests/itemize/three.items
new file mode 100644
index 00000000..394767e5
--- /dev/null
+++ b/tests/itemize/three.items
@@ -0,0 +1 @@
+<span font="Cantarell 11" fallback="false">عַرַبִ</span>