[Gtk-sharp-list] Problem With Gtk.Label Pango Layout Vertical Alignment
Ratfish
aaron at radich.com
Wed Jan 27 16:36:02 EST 2010
I'm using the Pango markup to set a large font for a GTK Label. The Label is
in a region of a HBox and is set to Expand and Fill the region. When I use
the Label's Text property, the Text is perfectly centered in the HBox
region. When I use the Pango Markup, the vertical alignment is off. The
horizontal alignment is fine. The veritical is as if I had it set to
Baseline. Is there a way to make the Label's vertical alignment to be
"middle" when using the Pango markup?
Aaron
lblItemCount.Layout.Alignment = Pango.Alignment.Center;
lblItemCount.Layout.FontDescription = Pango.FontDescription.FromString("Sans
Bold Not-Rotated 100");
lblItemCount.Layout.SetMarkup("" + "0" + "");
--
View this message in context: http://old.nabble.com/Problem-With-Gtk.Label-Pango-Layout-Vertical-Alignment-tp27347201p27347201.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.
More information about the Gtk-sharp-list
mailing list