Text Element with multiple Fonts? Possible?

Is it possible to create a text element with text with different fonts?  I would like to use one font that use greek characters and another font for displaying angles.  I have only been able to set the font for the whole element, not pieces of it.   I have tried a different way than using multiple fonts by using the %%916, %%952, but this font only shows * when placed into written into the model.  Any ideas anybody?
Parents
  • Arrell:
    Is it possible to create a text element with text with different fonts?

    No: a TextElement has a single TextStyle property, and a TextStyle has a single Font property.

    What CADCOP is referring to is the ability of the word processor to create a line of text having multiple settings. In fact, it creates a TextNodeElement having several TextElements arranged horizontally. It has the appearance of a single line of multi-font text, which is probably what you want.

    To emulate that effect, construct several TextElements, each with the desired font, then add them to a TextNodeElement.

    Regards, Jon Summers
    LA Solutions

     
    Regards, Jon Summers
    LA Solutions

  • Thanks for the reply!  Can you add two TextElements to a TextNodeElement on the same line?  I may not really understand, but it seems that you can use either AddTextLine or InsertTextLine, both of which seem to me to add the text to a seperate line.  When the text is placed in the model in is arranged vertically with separte lines for each line added to the TextNodeElement.  Is it possible to change the properties so that lines 2 and 3 (of a TextNodeElement) are arranged horizontally and then lines 1 and 5-10 are arranged vertically?  What I am looking for is something similar to this.  Except the quesiton mark is a greek delta symbol and then the rest of the text is a different font.

    PI STA 81+00.50
    ?=31^21'08.16" LT
    T=420.96'
    L=820.80'
    R=1500.00'
    E=57.95'
    e=0.000 ft/ft
    Runoff= ----
    Runout= ----

  • Arrell:

    Can you add two TextElements to a TextNodeElement on the same line?

    The evidence speaks for itself. Use the text editor to create a line of text, and adopt CADCOP's suggestion.

    Arrell:

    I may not really understand, but it seems that you can use either AddTextLine or InsertTextLine, both of which seem to me to add the text to a seperate line.

    Those methods add a TextElement to the TextNodeElement. By default, they are aligned vertically. However, each TextElement has its own origin that you can modify.

    Arrell:

    Is it possible to change the properties so that lines 2 and 3 of a TextNodeElement are arranged horizontally and then lines 1 and 5-10 are arranged vertically?

    Add text to your TextNodeElement and adjust the origin of each TextElement to suit your needs.

    Regards, Jon Summers
    LA Solutions

     
    Regards, Jon Summers
    LA Solutions

Reply
  • Arrell:

    Can you add two TextElements to a TextNodeElement on the same line?

    The evidence speaks for itself. Use the text editor to create a line of text, and adopt CADCOP's suggestion.

    Arrell:

    I may not really understand, but it seems that you can use either AddTextLine or InsertTextLine, both of which seem to me to add the text to a seperate line.

    Those methods add a TextElement to the TextNodeElement. By default, they are aligned vertically. However, each TextElement has its own origin that you can modify.

    Arrell:

    Is it possible to change the properties so that lines 2 and 3 of a TextNodeElement are arranged horizontally and then lines 1 and 5-10 are arranged vertically?

    Add text to your TextNodeElement and adjust the origin of each TextElement to suit your needs.

    Regards, Jon Summers
    LA Solutions

     
    Regards, Jon Summers
    LA Solutions

Children
No Data