summaryrefslogtreecommitdiff
path: root/docs/pango_bidi.md
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-08-08 16:22:58 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-08-08 16:31:23 -0400
commitb674819929ce158005130d22fe89d9c5e22a55bc (patch)
treeb456525e4a7c2d39be9b1da0ec9723536ecc1aea /docs/pango_bidi.md
parentcb27301a0ed591de6fe2121b0451e8f8e1226576 (diff)
downloadpango-b674819929ce158005130d22fe89d9c5e22a55bc.tar.gz
docs: Add a dark mode variant of some images
Diffstat (limited to 'docs/pango_bidi.md')
-rw-r--r--docs/pango_bidi.md5
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/pango_bidi.md b/docs/pango_bidi.md
index dcb5ddf1..5d418422 100644
--- a/docs/pango_bidi.md
+++ b/docs/pango_bidi.md
@@ -20,7 +20,10 @@ Pango is not only capable of vertical text layout, it can handle mixed vertical
and non-vertical text correctly. This section describes the types used for setting
vertical text parameters.
- <img alt="gravity west, rotated 90 degrees" align="right" valign="top" src="vertical.png">
+<picture>
+ <source srcset="vertical-dark.png" media="(prefers-color-scheme: dark)">
+ <img alt="gravity west, rotated 90 degrees" align="right" valign="top" src="vertical-light.png">
+</picture>
The way this is implemented is through the concept of *gravity*. Gravity tells glyphs which way is down, so the gravity of normal Latin text is south. A gravity value of east means that glyphs will be rotated ninety degrees
counterclockwise. So, to render vertical text one needs
to set the gravity and rotate the layout using the matrix machinery already