Skip to main content
1-Visitor
August 28, 2015
Solved

Globally change fonts used in a graphic

  • August 28, 2015
  • 2 replies
  • 3939 views

Running IsoDraw 7.3 on Win7 pc.

Using Batch to convert CGM files to SVG.

Would like to remap all Fonts (most are Arial), changing them to Helvetica.

How to batch change the Fonts, whether in the file while it's open, or during the batch export process?

We certainly could write code and run it against the SVG files afterward, but will IsoDraw do it?

Thanks,

Dave

    Best answer by thendricks

    In the batch tool you have the option to apply a macro to the file prior to the export. Haven't tested that the following works in the tool itself (there are a few hiccups using macros in the batch tool) but it is pretty basic so it should be fine.

    Just save the following as a macro and then restart IsoDraw. In the selection for macro add this. Note that if the name of Helvetica is different such as a thin version, you'll need to update accordingly.

    Macro Text_to_Helvetica

        Select if Type is "Text"

        Text Font "Helvetica"

        Select None

    End Macro

    2 replies

    1-Visitor
    August 28, 2015

    Hey David - I've moved this discussion into our PTC Arbortextβ€Œ product community so that other IsoDraw users can help you with this question. We reserve the PTC Community Helpβ€Œ group for conversations about the PTC Community website. Best of luck!

    12-Amethyst
    August 28, 2015

    In the batch tool you have the option to apply a macro to the file prior to the export. Haven't tested that the following works in the tool itself (there are a few hiccups using macros in the batch tool) but it is pretty basic so it should be fine.

    Just save the following as a macro and then restart IsoDraw. In the selection for macro add this. Note that if the name of Helvetica is different such as a thin version, you'll need to update accordingly.

    Macro Text_to_Helvetica

        Select if Type is "Text"

        Text Font "Helvetica"

        Select None

    End Macro

    dreason1-VisitorAuthor
    1-Visitor
    August 28, 2015

    Thank you!

    Could I trouble you to explain each line? It looks like the middle line is finding instances of Helvetica (which will not exist) and the next line is changing that font to None, which should be Helvetica.

    Where is the reference guide for macro use? (I have to use online helps because the in-app Help Menu options don’t work.)

    Thanks again.

    Dave

    12-Amethyst
    August 28, 2015

    Not a problem. To be clear, I'll number each line so that we are clear on what does what. Sounds like you might be new to this. πŸ˜‰

    1) Macro Text_to_Helvetica

    2)    Select if Type is "Text"

    3)    Text Font "Helvetica"

    4)    Select None

    5) End Macro

    1) Simply indicating the start of the macro and its' name.

    2) Selects all text (size, face, and type does not matter).

    3) Set font to Helvetica for the selection.

    4) Clears the selection. I tend to do this a lot so that if you accidentally hit delete when done you don't have all your text disappear (though stepping back would bring it back).

    5) Just the closure of the macro.

    In regards to the help. If you can't get it from the help menu in IsoDraw (click the first selection under Help, it's all together after that, you can reference the attached which is from 7.3.