New to Kendo UI for jQueryStart a free 30-day trial

Stroke

methods

Sets the text stroke.

Parameters:colorString

The stroke color to set.

Returns:kendo.drawing.Text

The current instance to allow chaining.

<div id="surface"></div>
<script>
    var draw = kendo.drawing;
    var geom = kendo.geometry;

    var position = new geom.Point(10, 10);
    var text = new draw.Text("Outlined text", position, {
        font: "20px Arial",
        fill: { color: "white" }
    });

    text.stroke("black", 2, 1);

    var surface = draw.Surface.create($("#surface"));
    surface.draw(text);
</script>
Not finding the help you need?
Contact Support