diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-12-07 04:28:00 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-12-07 04:28:00 +0000 |
commit | 8b46f5db285c6c661a2a7c28c5b354426a8d5c61 (patch) | |
tree | 12270307395f0e41111bbabeea783f75e3060b09 /tests/layouts/tabs-nowrap.layout | |
parent | 43470dcc035f8c8c3331cce380c834dcba7c2c89 (diff) | |
parent | dc5b1fdea7d63277f2b31489896d1947f0511a24 (diff) | |
download | pango-8b46f5db285c6c661a2a7c28c5b354426a8d5c61.tar.gz |
Merge branch 'fix-tabs-nowrap' into 'main'
Fix line width computation
Closes #635
See merge request GNOME/pango!535
Diffstat (limited to 'tests/layouts/tabs-nowrap.layout')
-rw-r--r-- | tests/layouts/tabs-nowrap.layout | 363 |
1 files changed, 363 insertions, 0 deletions
diff --git a/tests/layouts/tabs-nowrap.layout b/tests/layouts/tabs-nowrap.layout new file mode 100644 index 00000000..4a1d40b5 --- /dev/null +++ b/tests/layouts/tabs-nowrap.layout @@ -0,0 +1,363 @@ +{ + "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" : "A case where tabs were broken if line wrapping is disabled.", + "text" : "123\t9\n123456789", + "attributes" : [ + { + "type" : "font-features", + "value" : "tnum=1" + } + ], + "font" : "DejaVu Sans Mono 32", + "output" : { + "is-wrapped" : false, + "is-ellipsized" : false, + "unknown-glyphs" : 0, + "width" : 239616, + "height" : 239616, + "log-attrs" : [ + { + "char-break" : true, + "cursor-position" : true, + "word-start" : true, + "sentence-boundary" : true, + "sentence-start" : true, + "backspace-deletes-character" : true, + "word-boundary" : true + }, + { + "char-break" : true, + "cursor-position" : true + }, + { + "char-break" : true, + "cursor-position" : true + }, + { + "char-break" : true, + "white" : true, + "cursor-position" : true, + "word-end" : true, + "word-boundary" : true + }, + { + "line-break" : true, + "char-break" : true, + "cursor-position" : true, + "word-start" : true, + "backspace-deletes-character" : true, + "word-boundary" : true + }, + { + "char-break" : true, + "white" : true, + "cursor-position" : true, + "word-end" : true, + "sentence-end" : true, + "word-boundary" : true + }, + { + "line-break" : true, + "mandatory-break" : true, + "char-break" : true, + "cursor-position" : true, + "word-start" : true, + "sentence-boundary" : true, + "sentence-start" : true, + "backspace-deletes-character" : true, + "word-boundary" : true + }, + { + "char-break" : true, + "cursor-position" : true + }, + { + "char-break" : true, + "cursor-position" : true + }, + { + "char-break" : true, + "cursor-position" : true + }, + { + "char-break" : true, + "cursor-position" : true + }, + { + "char-break" : true, + "cursor-position" : true + }, + { + "char-break" : true, + "cursor-position" : true + }, + { + "char-break" : true, + "cursor-position" : true + }, + { + "char-break" : true, + "cursor-position" : true + }, + { + "line-break" : true, + "mandatory-break" : true, + "char-break" : true, + "white" : true, + "cursor-position" : true, + "word-end" : true, + "sentence-boundary" : true, + "sentence-end" : true, + "word-boundary" : true + } + ], + "lines" : [ + { + "start-index" : 0, + "length" : 5, + "paragraph-start" : true, + "direction" : "ltr", + "runs" : [ + { + "offset" : 0, + "length" : 3, + "text" : "123", + "bidi-level" : 0, + "gravity" : "south", + "language" : "en-us", + "script" : "common", + "font" : { + "description" : "DejaVu Sans Mono 32", + "checksum" : "84c5467cadd1f6f23db0d9fbb6377e0d301334d3b5f36e6d5acebd34d0857d3a", + "matrix" : [ + 1, + -0, + -0, + 1, + 0, + 0 + ] + }, + "flags" : 0, + "extra-attributes" : [ + { + "type" : "font-features", + "value" : "tnum=1" + } + ], + "y-offset" : 0, + "start-x-offset" : 0, + "end-x-offset" : 0, + "glyphs" : [ + { + "glyph" : 20, + "width" : 26624, + "is-cluster-start" : true, + "log-cluster" : 0 + }, + { + "glyph" : 21, + "width" : 26624, + "is-cluster-start" : true, + "log-cluster" : 1 + }, + { + "glyph" : 22, + "width" : 26624, + "is-cluster-start" : true, + "log-cluster" : 2 + } + ] + }, + { + "offset" : 3, + "length" : 1, + "text" : "\t", + "bidi-level" : 0, + "gravity" : "south", + "language" : "en-us", + "script" : "common", + "font" : { + "description" : "DejaVu Sans Mono 32", + "checksum" : "84c5467cadd1f6f23db0d9fbb6377e0d301334d3b5f36e6d5acebd34d0857d3a", + "matrix" : [ + 1, + -0, + -0, + 1, + 0, + 0 + ] + }, + "flags" : 0, + "extra-attributes" : [ + { + "type" : "font-features", + "value" : "tnum=1" + } + ], + "y-offset" : 0, + "start-x-offset" : 0, + "end-x-offset" : 0, + "glyphs" : [ + { + "glyph" : 268435455, + "width" : 133120, + "is-cluster-start" : true, + "log-cluster" : 0 + } + ] + }, + { + "offset" : 4, + "length" : 1, + "text" : "9", + "bidi-level" : 0, + "gravity" : "south", + "language" : "en-us", + "script" : "common", + "font" : { + "description" : "DejaVu Sans Mono 32", + "checksum" : "84c5467cadd1f6f23db0d9fbb6377e0d301334d3b5f36e6d5acebd34d0857d3a", + "matrix" : [ + 1, + -0, + -0, + 1, + 0, + 0 + ] + }, + "flags" : 0, + "extra-attributes" : [ + { + "type" : "font-features", + "value" : "tnum=1" + } + ], + "y-offset" : 0, + "start-x-offset" : 0, + "end-x-offset" : 0, + "glyphs" : [ + { + "glyph" : 28, + "width" : 26624, + "is-cluster-start" : true, + "log-cluster" : 0 + } + ] + } + ] + }, + { + "start-index" : 6, + "length" : 9, + "paragraph-start" : true, + "direction" : "ltr", + "runs" : [ + { + "offset" : 6, + "length" : 9, + "text" : "123456789", + "bidi-level" : 0, + "gravity" : "south", + "language" : "en-us", + "script" : "common", + "font" : { + "description" : "DejaVu Sans Mono 32", + "checksum" : "84c5467cadd1f6f23db0d9fbb6377e0d301334d3b5f36e6d5acebd34d0857d3a", + "matrix" : [ + 1, + -0, + -0, + 1, + 0, + 0 + ] + }, + "flags" : 0, + "extra-attributes" : [ + { + "type" : "font-features", + "value" : "tnum=1" + } + ], + "y-offset" : 0, + "start-x-offset" : 0, + "end-x-offset" : 0, + "glyphs" : [ + { + "glyph" : 20, + "width" : 26624, + "is-cluster-start" : true, + "log-cluster" : 0 + }, + { + "glyph" : 21, + "width" : 26624, + "is-cluster-start" : true, + "log-cluster" : 1 + }, + { + "glyph" : 22, + "width" : 26624, + "is-cluster-start" : true, + "log-cluster" : 2 + }, + { + "glyph" : 23, + "width" : 26624, + "is-cluster-start" : true, + "log-cluster" : 3 + }, + { + "glyph" : 24, + "width" : 26624, + "is-cluster-start" : true, + "log-cluster" : 4 + }, + { + "glyph" : 25, + "width" : 26624, + "is-cluster-start" : true, + "log-cluster" : 5 + }, + { + "glyph" : 26, + "width" : 26624, + "is-cluster-start" : true, + "log-cluster" : 6 + }, + { + "glyph" : 27, + "width" : 26624, + "is-cluster-start" : true, + "log-cluster" : 7 + }, + { + "glyph" : 28, + "width" : 26624, + "is-cluster-start" : true, + "log-cluster" : 8 + } + ] + } + ] + } + ] + } +} |