summaryrefslogtreecommitdiff
path: root/tests/layouts/arabic-format.layout
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-12-16 14:34:26 -0500
committerMatthias Clasen <mclasen@redhat.com>2021-12-16 14:35:56 -0500
commita11ce3c81b66e87d535b99728fa5ee22afa42b11 (patch)
tree2c9366e88e2ddab250c08858ffc8f503db15bc0b /tests/layouts/arabic-format.layout
parent9562a09675ab7e63c4f70c5c6c97356b78dc907c (diff)
downloadpango-arabic-format.tar.gz
Add a test for 0x6ddarabic-format
This tests the fix in the previous commit.
Diffstat (limited to 'tests/layouts/arabic-format.layout')
-rw-r--r--tests/layouts/arabic-format.layout89
1 files changed, 89 insertions, 0 deletions
diff --git a/tests/layouts/arabic-format.layout b/tests/layouts/arabic-format.layout
new file mode 100644
index 00000000..630a0f03
--- /dev/null
+++ b/tests/layouts/arabic-format.layout
@@ -0,0 +1,89 @@
+{
+ "context" : {
+ "font" : "serif 12",
+ "base-gravity" : "south",
+ "gravity-hint" : "natural",
+ "base-dir" : "weak-ltr",
+ "round-glyph-positions" : true,
+ "transform" : [
+ 1,
+ 0,
+ 0,
+ 1,
+ 0,
+ 0
+ ]
+ },
+ "comment" : "Test that font fallback works\nfor visible format characters\nin the Arabic block.",
+ "text" : "۝",
+ "font" : "Sans 32",
+ "output" : {
+ "is-wrapped" : false,
+ "is-ellipsized" : false,
+ "unknown-glyphs" : 0,
+ "width" : 56320,
+ "height" : 56320,
+ "log-attrs" : [
+ {
+ "char-break" : true,
+ "cursor-position" : true,
+ "sentence-boundary" : true,
+ "backspace-deletes-character" : true,
+ "word-boundary" : true
+ },
+ {
+ "line-break" : true,
+ "mandatory-break" : true,
+ "char-break" : true,
+ "white" : true,
+ "cursor-position" : true,
+ "sentence-boundary" : true,
+ "backspace-deletes-character" : true,
+ "word-boundary" : true
+ }
+ ],
+ "lines" : [
+ {
+ "start-index" : 0,
+ "length" : 2,
+ "paragraph-start" : true,
+ "direction" : "ltr",
+ "runs" : [
+ {
+ "offset" : 0,
+ "length" : 2,
+ "text" : "۝",
+ "bidi-level" : 2,
+ "gravity" : "south",
+ "language" : "en-us",
+ "script" : "common",
+ "font" : {
+ "description" : "Amiri 32",
+ "checksum" : "d5e6374130d6df09e66f80f0bbcb7262112584ebadb861f0a412a21cc742a5dd",
+ "matrix" : [
+ 1,
+ -0,
+ -0,
+ 1,
+ 0,
+ 0
+ ]
+ },
+ "flags" : 0,
+ "y-offset" : 0,
+ "start-x-offset" : 0,
+ "end-x-offset" : 0,
+ "glyphs" : [
+ {
+ "glyph" : 1,
+ "width" : 56320,
+ "is-cluster-start" : true,
+ "log-cluster" : 0
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
+}