From b420d022a2979c2e86b465bca0c7d603dd136108 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 16 Dec 2021 08:40:07 -0500 Subject: Fix handling of space-less fonts HarfBuzz knows how to synthesize spaces, we just need to tickle it in the right way. Test included. Update affected tests. Fixes: #641 --- tests/layouts/valid-14.layout | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) (limited to 'tests/layouts/valid-14.layout') diff --git a/tests/layouts/valid-14.layout b/tests/layouts/valid-14.layout index ca686814..8cfa62d9 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" : 1, + "unknown-glyphs" : 0, "width" : 161792, "height" : 161792, "log-attrs" : [ @@ -189,8 +189,8 @@ "runs" : [ { "offset" : 0, - "length" : 3, - "text" : "你", + "length" : 6, + "text" : "你好", "bidi-level" : 0, "gravity" : "south", "language" : "en-us", @@ -241,9 +241,9 @@ ] }, { - "offset" : 3, - "length" : 4, - "text" : "好 ", + "offset" : 6, + "length" : 1, + "text" : " ", "bidi-level" : 0, "gravity" : "south", "language" : "xx", @@ -266,16 +266,10 @@ "end-x-offset" : 0, "glyphs" : [ { - "glyph" : 1, + "glyph" : 0, "width" : 15360, "is-cluster-start" : true, "log-cluster" : 0 - }, - { - "glyph" : 268435488, - "width" : 0, - "is-cluster-start" : true, - "log-cluster" : 3 } ] }, -- cgit v1.2.1