How to add outline color to textBlock text, not font color?

How to add outline color to textBlock text,not font color?Currently, textBlock’s attribution “stroke” is to change font color ,not for the outline of the font.

Yes, the TextBlock.stroke is what is used to draw the text glyphs.

If you want a border around an object, use an “Auto” Panel with a Shape as the main element and with the object as the second element. GoJS Panels -- Northwoods Software

Hi walter,I tried your solution for my question.But my textBlock is in a Node,type is “go.Panel.Spot”. And there is also a “go.Picture” in this Panel. I just want the textBlock part have the outline.The following is a the structure of my code.

G(go.Node,[{
   type:go.Panel.Spot,
}],
   G(go.Picture,{
             name:"picture",
             source:''
    }),
    G(go.TextBlock,{
             name:"textBlock",
             font:" arial,sans-serif"
    })
)

Yes, replace the TextBlock with a Panel consisting of a Shape and that same TextBlock.

Node, "Spot"
    Picture
    Panel, "Auto"
        Shape
        TextBlock