summaryrefslogtreecommitdiff
path: root/tests/layouts/bratwurst.layout
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-11-21 11:02:07 -0500
committerMatthias Clasen <mclasen@redhat.com>2021-11-22 09:58:18 -0500
commit9d114095bd4c4fb5ab64fff0ed5c1f6680ed2609 (patch)
treee0f9d05465da901e9ff29fe0ca45c8d52b21ac70 /tests/layouts/bratwurst.layout
parent0b84e14251445de349038eca15d2559dfe25ae26 (diff)
downloadpango-9d114095bd4c4fb5ab64fff0ed5c1f6680ed2609.tar.gz
Fix a case of unintended hyphenation
When we take a complete item because there are no breakpoints, we were inserting a hyphen at the end even though there may not be a breakpoint there, and ending up with a hyphen in the middle of an (overlong) line: Brat-wurst. Test included. This but was discovered with the help of http://gitlab.gnome.org/matthiasc/layout-editor
Diffstat (limited to 'tests/layouts/bratwurst.layout')
-rw-r--r--tests/layouts/bratwurst.layout21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/layouts/bratwurst.layout b/tests/layouts/bratwurst.layout
new file mode 100644
index 00000000..65104276
--- /dev/null
+++ b/tests/layouts/bratwurst.layout
@@ -0,0 +1,21 @@
+{
+ "text" : "Bratwurst",
+ "attributes" : [
+ {
+ "start" : 4,
+ "type" : "style",
+ "value" : "italic"
+ }
+ ],
+ "font" : "Sans Bold 32",
+ "tabs" : {
+ "positions-in-pixels" : true,
+ "positions" : [
+ 0,
+ 50,
+ 100
+ ]
+ },
+ "width" : 102400,
+ "line-spacing" : 1.2999999523162842
+} \ No newline at end of file