summaryrefslogtreecommitdiff
path: root/tests/layouts/valid-14.layout
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-12-17 18:06:31 -0500
committerMatthias Clasen <mclasen@redhat.com>2021-12-17 19:54:53 -0500
commitcc50534f6a360ea48ff4edeca0d8a9d84062a9ba (patch)
tree7162937f376fe03d150fc8084634668481bc75ec /tests/layouts/valid-14.layout
parent6390bd6230b030218d3ea70ef39ea8f2938840fa (diff)
downloadpango-cc50534f6a360ea48ff4edeca0d8a9d84062a9ba.tar.gz
shape: More tweaks to space handling
It is a difficult dance between HarfBuzz and pango which glyphs we let hb synthesize, and which ones we need to fake ourselves. HarfBuzz knows how to create other spaces from 0x20, so if the font is lacking spaces, we want to tell HarfBuzz that we don't have that glyph *except* for 0x20 where we need to fake one, and provide HarfBuzz with a suitable width. Update affected tests.
Diffstat (limited to 'tests/layouts/valid-14.layout')
-rw-r--r--tests/layouts/valid-14.layout20
1 files changed, 13 insertions, 7 deletions
diff --git a/tests/layouts/valid-14.layout b/tests/layouts/valid-14.layout
index 9bfd7723..10cef38b 100644
--- a/tests/layouts/valid-14.layout
+++ b/tests/layouts/valid-14.layout
@@ -23,7 +23,7 @@
"output" : {
"is-wrapped" : false,
"is-ellipsized" : true,
- "unknown-glyphs" : 0,
+ "unknown-glyphs" : 1,
"width" : 161792,
"height" : 161792,
"log-attrs" : [
@@ -189,8 +189,8 @@
"runs" : [
{
"offset" : 0,
- "length" : 6,
- "text" : "你好",
+ "length" : 3,
+ "text" : "你",
"bidi-level" : 0,
"gravity" : "south",
"language" : "en-us",
@@ -241,9 +241,9 @@
]
},
{
- "offset" : 6,
- "length" : 1,
- "text" : " ",
+ "offset" : 3,
+ "length" : 4,
+ "text" : "好 ",
"bidi-level" : 0,
"gravity" : "south",
"language" : "xx",
@@ -266,10 +266,16 @@
"end-x-offset" : 0,
"glyphs" : [
{
- "glyph" : 0,
+ "glyph" : 1,
"width" : 15360,
"is-cluster-start" : true,
"log-cluster" : 0
+ },
+ {
+ "glyph" : 268435488,
+ "width" : 0,
+ "is-cluster-start" : true,
+ "log-cluster" : 3
}
]
},