diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-08-08 14:02:25 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-08-08 14:02:25 -0400 |
commit | b69c5063162d779020f331f291431e250a769d5c (patch) | |
tree | 20ac6bae27da6f88548b0f90145f6ae11072cd08 /pango | |
parent | b312191e48c2ea8f0894c4077af69f1aff6c195c (diff) | |
download | pango-b69c5063162d779020f331f291431e250a769d5c.tar.gz |
docs: Add more details
Add some visualization of alignment and justification
to the PangoLayout docs.
Diffstat (limited to 'pango')
-rw-r--r-- | pango/pango-layout.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pango/pango-layout.c b/pango/pango-layout.c index b39ca62b..e0475a5e 100644 --- a/pango/pango-layout.c +++ b/pango/pango-layout.c @@ -45,6 +45,16 @@ * * ![Pango Layout Parameters](layout.png) * + * The following images demonstrate the effect of alignment and + * justification on the layout of text: + * + * | | | + * | --- | --- | + * | ![align=left](align-left.png) | ![align=left, justify](align-left-justify.png) | + * | ![align=center](align-center.png) | ![align=center, justify](align-center-justify.png) | + * | ![align=right](align-right.png) | ![align=right, justify](align-right-justify.png) | + * + * * It is possible, as well, to ignore the 2-D setup, * and simply treat the results of a `PangoLayout` as a list of lines. */ |