summaryrefslogtreecommitdiff
path: root/tests/test-itemize.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-08-29 00:10:03 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-08-31 14:29:56 -0400
commit303b4fb73eb8848d18abbda4d151461bd86f1000 (patch)
tree44024e2ec8933eef1a7a3d62ffc2d35264104634 /tests/test-itemize.c
parente382a65301847bb432c1bf3f9774ef48e1ec4734 (diff)
downloadpango-303b4fb73eb8848d18abbda4d151461bd86f1000.tar.gz
Implement baseline shifts
Add a new baseline-shift attribute, which is similar to rise, but accumulates. In addition, it supports font- relative values such as superscript and subscript. We implement support for this by computing baseline shifts for run during line post-processing, and storing them in the runs. The renderer now takes these shifts into account when rendering layout lines.
Diffstat (limited to 'tests/test-itemize.c')
-rw-r--r--tests/test-itemize.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test-itemize.c b/tests/test-itemize.c
index db6a715f..29f59210 100644
--- a/tests/test-itemize.c
+++ b/tests/test-itemize.c
@@ -77,6 +77,7 @@ affects_itemization (PangoAttribute *attr,
case PANGO_ATTR_LETTER_SPACING:
case PANGO_ATTR_SHAPE:
case PANGO_ATTR_RISE:
+ case PANGO_ATTR_BASELINE_SHIFT:
case PANGO_ATTR_LINE_HEIGHT:
case PANGO_ATTR_ABSOLUTE_LINE_HEIGHT:
case PANGO_ATTR_TEXT_TRANSFORM: