I think justify has to do with the alignment of wrapped lines to
each other, not to alignment of the entire text with the boundary
of the containing label.
On 4/4/19 7:15 AM, Kjell Ahlstedt
wrote:
In the
description of Pango::Alignment at
https://developer.gnome.org/pangomm/2.38/group__pangommEnums.html#gaf6b8926663368e305380e01f8858caca
I found this:
If the Pango::Layout is set to justify using
Pango::Layout::set_justify(), this only has effect for partial
lines.
The description of PangoAlignment in pango (i.e. not pangomm) has
a similar sentence. Don't know if it applies to your code, or if
it's a feature or a bug.
/Kjell
On 2019-04-04 15:57, Phil Wolff via gtkmm-list wrote:
Pango::Layout will display text in a
Gtk::Label with PANGO_ALIGN_LEFT alignment as long as
is_wrapped() returns FALSE. When something causes wrapping to
occur, Pango::Layout then displays the text as though
PANGO_ALIGN_CENTER had been requested, even though
get_alignment() continues to return PANGO_ALIGN_LEFT.
Is this a feature or a bug?
If it’s a feature, is there a way to override it, so that
PANGO_ALIGN_LEFT remains in effect?
--
I am better able
to retract what I did not say than what I did.
— Ibn Gabirol
|