Skip to content

Implement baseline shifts

Matthias Clasen requested to merge baseline-shift into main

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.

Merge request reports