Which control should I take on a Canvas just looks like a label,and it has font properties such as font-family,font-style,font-weight and so on.
e.g.
{let str:String = "abc"}
{let c:Canvas = {Canvas height = 5cm, width = 8cm,background = "silver"}}
{let lb:Label = {Label
{text
font-weight = "bold",
font-size = 10pt,
font-style = "italic",
{str.to-String}
}
}
}
{value
{c.add
lb,
x = c.width / 2,
y = c.height / 2
}
c
}
But in project,that's not good to change each property after defined the label.
How should I do? Please help me.