StyledText: No italics for Geneva?

I have not used with StyledText for a long time and started playing with it to see if an idea I have in mind might work. To that end I put the code below in the Open event of a Window that has a TextArea on it (OSX 10.14.6, Xojo2019R1).

To my eye the 3rd run does not look to be italic if I use Geneva as the font… But does if I change it to Arial or Helvetica… Have I found a bug or is there some other reason Geneva does not render in italic… At one time in the past (though it may have been LONG ago) I’m pretty sure it did.

[code]Dim X as StyleRun

X= New StyleRun
X.Text = “The first Run”
X.Size = 12
X.Font = “Helvetica”
ST.AppendStyleRun X

X= New StyleRun
X.Text = " The 2nd Run"
X.Size = 16
X.Font = “Times”
X.TextColor = &CFF0000
ST.AppendStyleRun X

X= New StyleRun
X.Text = " The 3rd Run"
X.Size = 14
X.Font = “Geneva”
X.TextColor = &C0000FF
X.Italic = True
X.Underline = True
ST.AppendStyleRun X

X= New StyleRun
X.Text = " The 4rd Run"
X.Size = 24
X.Font = “Arial”
X.TextColor = &C00FF00
X.Bold = True
ST.AppendStyleRun X

TextArea1.StyledText = St
[/code]

Geneva on MacOS doesn’t come with an italic version.
So Italic would need to be simulated. e.g. DynaPDF can do that.

[quote=494198:@Christian Schmitz]Geneva on MacOS doesn’t come with an italic version.
[/quote]

Thanks, I must be remembering being able to do Geneva italic on pre-OSX Macs.

How is that relevant to styled text in a Xojo TextArea?

In any case the Einhugur PDF plugin can do that with the text matrix operator as well, and is much less expensive.

-Karen

To be clear:
on Classic MacOS, the OS can display as Italic even if you do not have that style installed.

On macOS, you HAVE to have the Bold, Italic, etc. fonts to be able to display them.

That explain what you can see.