Making Textarea Text as Italic not working

Hi,

Making the text in the Textarea to the font style “Italic” is not working in Mac Os.

I tried as TextArea1.SelItalic=true and TextArea1.StyledText.Italic(0, TextArea1.Text.Len)=true. Both are not working. Even tried changing the font to different fonts. But its not working.

Please help me to solve this issue.

Thank you

when I have that problem, it’s only a matter of font.
choosing a font that has the italic declinaison solves the problem.
try with helvetica for example ?

Do you have some selected Text ?

I use the following:

TextArea1.StyledText.Italic(lv_StartPos,lv_StrLeng) = true

It works fine.

Do you have verified that TextArea1.Text.Len is not zero?

yea by selecting the text i will click on button to make that selected text as italic

[quote=341436:@Michael Eckert]I use the following:

TextArea1.StyledText.Italic(lv_StartPos,lv_StrLeng) = true

It works fine.[/quote]
its not working for me

textarea has text its length is not zero

Does the font you are using have an Italic component? Not all do.

[quote=341429:@Jean-Yves Pochez]when I have that problem, it’s only a matter of font.
choosing a font that has the italic declinaison solves the problem.
try with helvetica for example ?[/quote]
Thank you so much. It works fine for me. I didn’t try with this font.

Yes i think the font which i used does not have italic component. Now its solved by using “helvetica” font