WebGraphics.Italic

From Xojo Documentation

Property (As Boolean )
aWebGraphics.Italic = newBooleanValue
or
BooleanValue = aWebGraphics.Italic

Supported for all project types and targets.

If True, text will appear in italic when using WebGraphics.DrawString.

Example

This example draws "Hello World" in red italic inside a WebCanvas.

g.ForeColor = &cff0000
g.Italic = True
g.DrawString("Hello world", 10, 10)