I need to write some text with pango-sharp, but depending on the number of characters scale the width.
This is what I currently have:
var layout = new Pango.Layout (Core.PangoContext);
layout.FontDescription = Pango.FontDescription.FromString (
"'Courier New' CLM 20");
layout.SetMarkup (@"<span color='black'>12</span>");
Area.GdkWindow.DrawLayout (Core.Area.Style.TextGC (
StateType.Normal), 50, 50, layout);
I was not able to find any hints on accomplishing that. I have found only a XY Scale in Pango, but no Scale just on X or Y.