summaryrefslogtreecommitdiff
path: root/tests/markups
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-08-08 01:40:08 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-08-08 10:38:40 -0400
commit59d38cde20425696543d262c5329b14056915614 (patch)
tree8baccfcbf663d7431c6cab69f42f4fd3712b3f8d /tests/markups
parent9d68eaf2d7366bc448f722d7638714fba9c34460 (diff)
downloadpango-59d38cde20425696543d262c5329b14056915614.tar.gz
markup: Allow specifying size as percentagemarkup-sizes
Accept values like 200%, in addition to other ways of specifying sizes in markup. Fixes: #23
Diffstat (limited to 'tests/markups')
-rw-r--r--tests/markups/valid-23.expected18
-rw-r--r--tests/markups/valid-23.markup1
2 files changed, 19 insertions, 0 deletions
diff --git a/tests/markups/valid-23.expected b/tests/markups/valid-23.expected
new file mode 100644
index 00000000..43621301
--- /dev/null
+++ b/tests/markups/valid-23.expected
@@ -0,0 +1,18 @@
+test test
+
+
+---
+
+range 0 5
+[0,9]font-desc=Cantarell 11
+range 5 9
+[0,9]font-desc=Cantarell 11
+[5,9]scale=2.000000
+range 9 2147483647
+
+
+---
+
+[0:5] (null) Cantarell 11
+[5:9] (null) Cantarell 22
+[9:2147483647] (null) Cantarell 22
diff --git a/tests/markups/valid-23.markup b/tests/markups/valid-23.markup
new file mode 100644
index 00000000..601fa7ee
--- /dev/null
+++ b/tests/markups/valid-23.markup
@@ -0,0 +1 @@
+<span font="Cantarell 11">test <span size="200%">test</span></span>