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.
_______________________________________________
Gtk-sharp-list maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list