Closed vasu-vvp closed 6 years ago
For example bold +italic font can be set as follow:
...
comp.setFont(new zebkit.Font("Arial", "bold italic", 16));
...
or you can specify font encoded as string:
...
comp.setFont("bold italic 14px Arial");
...
Underline (strike, etc) decoration is not supported by HTML5 canvas, but zebkit provides special text render for this case. For instance if you need a label or text field component with underlined text you can archive it as follow:
var dec = zebkit.draw.DecoratedTextRender("ABC").addDecorations("underline");
var tf = new zebkit.ui.TextField(dec);
Thanks :smiley:
How to define font having properties ? italic bold and underline it seems that either italic or bold can be defined, but what if bold and italic both are needed also if underline is needed also