I have labels that were made in Designer with a Typeface of MONOSPACE Style ITALIC
When I create a New label on a panel I am displaying in ScrollView2D and assign it a typeface of
Typeface.CreateNew(Typeface.MONOSPACE, Typeface.STYLE_ITALIC)
It appears as MONOSPACE but does not have the ITALIC style
Is designer doing something different in its label creation?
The code for the label I create is as follows:
Dim AnotherPlayer As Label
AnotherPlayer.Initialize("")
AnotherPlayer.Gravity = Gravity.LEFT + Gravity.CENTER_VERTICAL
AnotherPlayer.Typeface = Typeface.CreateNew(Typeface.MONOSPACE, Typeface.STYLE_ITALIC)
AnotherPlayer.TextSize = 16
Which matches exactly what I have in the labels I create in Designer. Why is the ITALIC style not taking effect?
BobVal