Textstyle with italic or bold

Discussion in 'AutoCAD' started by peltsu, Oct 29, 2004.

  1. peltsu

    peltsu Guest

    Hi,
    I'm trying to get an italics style in code. The following code does the job. But when I try to point that style to a text in a table it will not change the text to italic. It's width is according to the code but it wont make it italics or bold either. The preview box in Textstyles show that it really is italic but it will not appear that way in drawing area. Is it me or is a flaw in Autocad 2005

    Dim omateksti As AcadTextStyle


    Set omateksti = acaddoc.TextStyles.Add("ARIALitalics")

    With omateksti
    .fontFile = "c:\winnt\fonts\ariali.ttf"
    .SetFont "ARIAL", False, True, 0, PitchandFamily
    .Width = 0.8
    End With

    Yours
    Seppo Peltomaa
     
    peltsu, Oct 29, 2004
    #1
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.