diff options
-rw-r--r-- | docs/align-center-justify.png | bin | 0 -> 649 bytes | |||
-rw-r--r-- | docs/align-center.png | bin | 0 -> 539 bytes | |||
-rw-r--r-- | docs/align-left-justify.png | bin | 0 -> 622 bytes | |||
-rw-r--r-- | docs/align-left.png | bin | 0 -> 513 bytes | |||
-rw-r--r-- | docs/align-right-justify.png | bin | 0 -> 628 bytes | |||
-rw-r--r-- | docs/align-right.png | bin | 0 -> 497 bytes | |||
-rw-r--r-- | docs/pango.toml.in | 8 | ||||
-rw-r--r-- | pango/pango-layout.c | 10 |
8 files changed, 17 insertions, 1 deletions
diff --git a/docs/align-center-justify.png b/docs/align-center-justify.png Binary files differnew file mode 100644 index 00000000..c9244853 --- /dev/null +++ b/docs/align-center-justify.png diff --git a/docs/align-center.png b/docs/align-center.png Binary files differnew file mode 100644 index 00000000..a32ba3ca --- /dev/null +++ b/docs/align-center.png diff --git a/docs/align-left-justify.png b/docs/align-left-justify.png Binary files differnew file mode 100644 index 00000000..4c6f3970 --- /dev/null +++ b/docs/align-left-justify.png diff --git a/docs/align-left.png b/docs/align-left.png Binary files differnew file mode 100644 index 00000000..775c0721 --- /dev/null +++ b/docs/align-left.png diff --git a/docs/align-right-justify.png b/docs/align-right-justify.png Binary files differnew file mode 100644 index 00000000..430c57e5 --- /dev/null +++ b/docs/align-right-justify.png diff --git a/docs/align-right.png b/docs/align-right.png Binary files differnew file mode 100644 index 00000000..05968f2a --- /dev/null +++ b/docs/align-right.png diff --git a/docs/pango.toml.in b/docs/pango.toml.in index c4a1c11e..0b1cef06 100644 --- a/docs/pango.toml.in +++ b/docs/pango.toml.in @@ -71,5 +71,11 @@ content_images = [ "rects1.png", "rects2.png", "arabic-markup.png", - "blue-text.png" + "blue-text.png", + "align-left.png", + "align-center.png", + "align-right.png", + "align-left-justify.png", + "align-center-justify.png", + "align-right-justify.png", ] 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. */ |