summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-08-22 13:31:16 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-08-22 15:15:50 -0400
commit6c19a8352ff2d99fdd2d57c634cc753fe6bbf2e2 (patch)
tree0e784892a53d5827ded8519b5cf383d79a7f8162
parente3df89b5248434c41dacc27aa32c492f8ff98ce7 (diff)
downloadgtk+-css-line-height2.tar.gz
gtk-demo: Add a line height democss-line-height2
Add an example for widely spaced text to the markup demo.
-rw-r--r--demos/gtk-demo/markup.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/demos/gtk-demo/markup.txt b/demos/gtk-demo/markup.txt
index c850fd8c0b..9e42a399a6 100644
--- a/demos/gtk-demo/markup.txt
+++ b/demos/gtk-demo/markup.txt
@@ -18,3 +18,6 @@ Shortcuts: <tt>Monospace</tt> – <b>Bold</b> – <i>Italic</i> – <big>Big</bi
<span allow_breaks="false">A</span> hy­phen­ation al­go­rithm is a set of rules, espe­ci­ally one co­di­fied for im­ple­men­tation in a com­pu­ter pro­gram, that de­ci­des at which points a word can be bro­ken over two lines with a hy­phen. For ex­am­ple, a hy­phen­ation al­go­rithm might de­cide that im­peach­ment can be broken as <span allow_breaks="false">impeach‧ment</span> or <span allow_breaks="false">im‧peachment</span> but not <span allow_breaks="false">impe‧achment.</span>
<span insert_hyphens="false">one/two three/four five/six seven/eight nine/ten</span>
+
+<span line_height='1.33'>Line height: This is an example of widely spaced text. It was achieved by setting the line-height factor to 1.33. You can set the line-height factor to any value between 0 and 10.
+Note that the line height affects the spacing between paragraphs as well as between the wrapped lines inside a paragraph.</span>