Graphics.Italic

From Xojo Documentation

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

Supported for all project types and targets.

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

Example

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

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