Exemple #1
0
        public void DrawText(Vector2D location, string text, Color3 color)
        {
#if DEBUG
            location = _GetRestrictedVector(location);
#endif
            _gtkContext.SetSourceRGB(color.Red, color.Green, color.Blue);
            var layout = _drawingArea.CreatePangoLayout(text);
            layout.FontDescription = new Pango.FontDescription
            {
                Family = "Monospace", Weight = Pango.Weight.Bold
            };

            _gtkContext.MoveTo(location.X, location.Y);
            Pango.CairoHelper.ShowLayout(_gtkContext, layout);
        }