MonoHotDraw.Figures.SimpleTextFigure.SetupLayout C# (CSharp) Method

SetupLayout() protected method

protected SetupLayout ( Cairo context ) : void
context Cairo
return void
        protected virtual void SetupLayout(Cairo.Context context)
        {
            PangoLayout = Pango.CairoHelper.CreateLayout (context);
            PangoLayout.FontDescription = FontFactory.GetFontFromDescription (string.Format ("{0} {1}", FontFamily, FontSize));
            if (Text != null && Text.Length > 0)
                PangoLayout.SetText (Text);
            PangoLayout.Alignment = FontAlignment;
            PangoLayout.ContextChanged ();
        }