diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-12-16 21:00:32 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-12-16 21:00:32 +0000 |
commit | 4b651fca1f40355334a95effb46b2420b1c0ca36 (patch) | |
tree | 289666a0ae040df69350a666fb1c83576ef2d213 /tests/layouts/no-space.layout | |
parent | 63a11ce89e6c7fbadfd36461554b77c98801f9fb (diff) | |
parent | b420d022a2979c2e86b465bca0c7d603dd136108 (diff) | |
download | pango-4b651fca1f40355334a95effb46b2420b1c0ca36.tar.gz |
Merge branch 'fix-spaceless-fonts' into 'main'
Fix handling of space-less fonts
Closes #641
See merge request GNOME/pango!552
Diffstat (limited to 'tests/layouts/no-space.layout')
-rw-r--r-- | tests/layouts/no-space.layout | 142 |
1 files changed, 142 insertions, 0 deletions
diff --git a/tests/layouts/no-space.layout b/tests/layouts/no-space.layout new file mode 100644 index 00000000..07f6aa06 --- /dev/null +++ b/tests/layouts/no-space.layout @@ -0,0 +1,142 @@ +{ + "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 we get synthesized spaces\nfrom HarfBuzz.", + "text" : " ", + "font" : "Font Awesome 5 Free 32", + "output" : { + "is-wrapped" : false, + "is-ellipsized" : false, + "unknown-glyphs" : 0, + "width" : 220160, + "height" : 220160, + "log-attrs" : [ + { + "char-break" : true, + "white" : true, + "cursor-position" : true, + "sentence-boundary" : true, + "backspace-deletes-character" : true, + "expandable-space" : true, + "word-boundary" : true + }, + { + "char-break" : true, + "white" : true, + "cursor-position" : true, + "expandable-space" : true + }, + { + "line-break" : true, + "char-break" : true, + "cursor-position" : true, + "sentence-start" : true, + "word-boundary" : true + }, + { + "char-break" : true, + "white" : true, + "cursor-position" : true, + "sentence-end" : true, + "backspace-deletes-character" : true, + "expandable-space" : true, + "word-boundary" : true + }, + { + "char-break" : true, + "white" : true, + "cursor-position" : true, + "expandable-space" : true + }, + { + "line-break" : true, + "mandatory-break" : true, + "char-break" : true, + "white" : true, + "cursor-position" : true, + "sentence-boundary" : true, + "word-boundary" : true + } + ], + "lines" : [ + { + "start-index" : 0, + "length" : 7, + "paragraph-start" : true, + "direction" : "ltr", + "runs" : [ + { + "offset" : 0, + "length" : 7, + "text" : " ", + "bidi-level" : 0, + "gravity" : "south", + "language" : "en-us", + "script" : "common", + "font" : { + "description" : "Font Awesome 5 Free Solid Heavy 32", + "checksum" : "8fe6cd51391fa6f8c2008609ddd489bb81a6d7674f3a1c8b7fa07efd026a6397", + "matrix" : [ + 1, + -0, + -0, + 1, + 0, + 0 + ] + }, + "flags" : 0, + "y-offset" : 0, + "start-x-offset" : 0, + "end-x-offset" : 0, + "glyphs" : [ + { + "glyph" : 0, + "width" : 44032, + "is-cluster-start" : true, + "log-cluster" : 0 + }, + { + "glyph" : 0, + "width" : 44032, + "is-cluster-start" : true, + "log-cluster" : 1 + }, + { + "glyph" : 1, + "width" : 44032, + "is-cluster-start" : true, + "log-cluster" : 2 + }, + { + "glyph" : 0, + "width" : 44032, + "is-cluster-start" : true, + "log-cluster" : 5 + }, + { + "glyph" : 0, + "width" : 44032, + "is-cluster-start" : true, + "log-cluster" : 6 + } + ] + } + ] + } + ] + } +} |