PTC Express
May 2009
HOME
In This Issue
Everyday Tips for Pro/ENGINEER Wildfire 4.0
New Pro/ENGINEER Training Demo
Techniques for Surface Modeling in Pro/ENGINEER Wildfire 4.0
Opening Arbortext Editor without Styler from an XML File
Customizing Font in CGM Files Imported and Exported from Arbortext IsoDraw 7.0
Using Mathcad’s Text Styles to Format Text Consistently
ECAD-MCAD Collaboration - Best Practices in Action
Windchill Demonstration Series
Mathcad Demonstration Series
Arbortext IsoDraw 7.1 Webcast
Xerox Reduces Design Time by One Year with InterComm Expert









Customizing Font in CGM Files Imported and Exported from Arbortext IsoDraw 7.0

Why are the fonts in my CGM different than the fonts I use when creating a file in Arbortext IsoDraw?

Certain CGM profiles require or recommend the use of specific fonts. Arbortext IsoDraw follows these requirements by mapping existing fonts during import/export. You can control how a font is mapped by creating and modifying the [OptCGM.prf] file.

Arbortext IsoDraw's OptCGM.prf file

Font mapping is controlled within the [OptCGM.prf] file, which you can create with a simple click. Open the preferences window for Arbortext IsoDraw by selecting Edit > Preferences from the main menu. Within the Preferences window, navigate to the CGM Import page > click the button Create PRF file in order to generate an editable [OptCGM.prf] file with which you can control font mapping.

Each time this button is selected, a new [OptCGM.prf] file is created, overwriting any changes made to an existing version of the file. 


Locating the OptCGM.prf file:

Every user account (login name) may have its own Arbortext IsoDraw preference  settings. As such, these settings are not stored under the program files with the shared program files. Instead, they are kept under your Documents and Settings folder. The folder's path (location) is unique to each user and will typically be located in a path such as the one below:

C:\Documents and Settings\<Your Unique UserName>\Application Data\PTC\IsoDraw\Preferences

Depending on your computer's settings, you may not be able to access this destination folder without making some minor adjustments. When inside of the folder named after the user's login, the Application Date folder may not be displayed. In order to show this folder, choose the menu selection Tools > Folder Options.


This will open the Folder Options window. Once in the View tab, the option to Show hidden files and folders can be selected. Accepting this change with an OK and exiting back to the original folder should enable you to see the full contents of the folder.


Now you can continue navigating to the final destination folder as listed above and locate the [OptCGM.prf] file.


Editing:

Opening the [OptCGM.prf] file in any text editor, such as Notepad, will enable you to read, alter and save new settings for the import/export of CGM files including font mapping. A description of the font mapping syntax exists within the [OptCGM.prf] file as shown.


There are two areas of interest, the Font Table Import and Font Table Export sections. 

Note: your list may look different than the one below, as the list is generated from the collection of fonts currently available on your computer.

Export:

As can be seen below, there are two names listed per line, each ending with a semicolon (;).


The first name in the list is the name of the font that might be used when creating a document in Arbortext IsoDraw. The name listed here should be exactly the same as the name found within the Text > Fonts menu in Arbortext IsoDraw.

The second name in each line refers to the font name that will be assigned during export. In the partial list shown above, all of the fonts listed will be mapped to HELVETICA during the export.

 Example 1:

Algerian;HELVETICA; 
Arial;HELVETICA;

In this example, any text element in an Arbortext IsoDraw document using the fonts "Algerian" or "Arial" will be mapped to HELVETICA during export to CGM. If you desire certain fonts or font spellings to exist within the CGM document after export, ensure that your [OptCGM.prf] file reflects this.


 Example 2:

Algerian;Algerian; 
Arial;Arial;

Here we see that the font mapping will now maintain the current font names for Arial and Algerian. Please note that this may be in conflict with the standards set by certain CGM profiles.

At the bottom of the export list shown in Example 1, we see the line

"*;HELVETICA"

The asterisk refers to any font not previously listed. One could make a very simple font table by removing all lines other than this one:

Font Table Export: 
*;HELVETICA;
End Font Table

which would then dictate that all fonts are exported as HELVETICA.

Example 3:

"Times New Roman,i;TIMES_ITALIC;"

In a line like this, the ",i" refers to any text element with a face applied, such as italic. Fonts with Face applied have unique font names and this must be taken into account in the font map list.

Import:

When working with the import section, the rules are the same with the fonts reversed.

Now, the first font listed is the font name in the CGM file.

The second font listed is the font used in Arbortext IsoDraw including any face settings as defined by a ",i", ",b" or ",bi" for Italic, Bold and Bold Italic respectively.


 Example 4:

TIMES-BOLD;Times New Roman,b;

In the above example, any font found in an imported CGM file with the name "TIMES-BOLD" will be mapped to the Times New Roman font in the Text, Font menu. Additionally a Bold Face will be applied to it.

Please note that the name of the font within the CGM file must match the name listed above exactly in order for the font mapping to occur.

At the beginning of the font list is the line "*;Arial;". Similarly to the export table, this defines that any font not listed will be mapped to the "Arial" font. Spelling is very important when making changes to the fonts you will map to upon import. They must be spelled in the [OptCGM.prf] exactly as they are displayed in the Text > Fonts menu.

When are font mapping tables used for the CGM export?

Not every profile will use the font mapping found within the [OptCGM.prf} file. This is because not every profile has restrictions on the fonts used. Profiles that do not use the font mapping described above are

"ISO 8632: 1999"
 "WebCGM 1.0"
 "WebCGM 2.0"
 "S1000D 2.2"
 "S1000D 2.3"

The font substitution which is defined for CGM import will be applied in any case. There are no exemptions from this rule.



Was this tip helpful? Let us know.









 


[PRINTER FRIENDLY VERSION]