Microsoft KB Archive/75654

{|
 * width="100%"|

CGM Graphics Support in Word for Windows 2.0/2.0a

 * }

Q75654

-

The information in this article applies to:


 * Microsoft Word for Windows, versions 2.0, 2.0a

-

SUMMARY
The Word for Windows versions 2.0 and 2.0a Computer Graphics Metafile (CGM) import filter, CGMIMP.FLT, supports import of CGM graphics files that adapt to version 1 of the CGM specification. This filter is not designed to support CALS compliance.

Manual Installation
The CGM filter should be placed in:

"\MSAPPS\GRPHFLT" If you keep filters somewhere else (for example, C:\POWERPNT or C:\WINWORD), delete the old ones. Add entries to WIN.INI describing each new filter in a section called [MS Graphics Import Filter].

For example, WIN.INI may include a CGM entry similar to the following:

  [MS Graphics Import Filters] CGM (.CGM)=C:\WINDOWS\MSAPPS\GRPHFLT\CGMIMP.FLT,CGM Note: A full pathname to the filter executable file must be included.

Options
The CGM filter includes an interactive dialog box. This dialog box will not appear when inserting graphics via the Insert Picture command, and the default settings will remain in effect. However, the dialog box will appear when importing pictures into Word for Windows via Microsoft Draw. The following options are provided:


 * Retain background (default=unchecked)

This option draws a filled rectangle of the background color behind the image. Otherwise, the image background will be transparent (the background color of the document).
 * Emulate line styles (default=unchecked)

This option draws patterned lines using separate line segments for best image fidelity. Dotted lines are converted to solid lines unless this option is selected. Dotted lines in Windows are restricted to one pixel in width, which may appear too light on some devices.
 * Use scalable fonts (default=unchecked)

This option preserves text rotation and large text sizes. Raster fonts will be converted to vector fonts. Vector fonts, drawn with lines, can be infinitely scaled. Raster fonts are usually more aesthetic, but are restricted to the sizes and styles of installed Windows fonts.

With this option selected, the CGM filter defaults to the following font mappings, as proposed by the National Computer Graphics Association CGM Addendum, to map CGM fonts to Windows Metafile fonts:
 * Default color table (default=unchecked)

With this option checked, the CGM filter will uses its default color table instead of those specified in the graphic file. CGM files from Harvard Graphics require this option to convert colors correctly. The following are the color table defaults:

Supported CGM Elements
The CGM filter supports CGM files created with binary encoding, which is the most common method used by commercial applications. 7 or 8 bit character or clear text encoding schemes are not supported.

The following CGM graphical primitive and attribute elements are supported:


 * Line type: standard ANSI set
 * Marker type: standard ANSI set
 * Edge type: standard ANSI set
 * Line elements: polyline, disjoint polyline, circular arc 3 point, circular arc center, elliptical arc (pens with a physical width greater than one pixel will always have a solid style. A non-solid style pen always has a width of 1 pixel)
 * Fill elements: polygon, polygon set, rectangle, circle, circular arc 3 point close, circular arc center close, elliptical arc close, ellipse
 * Interior style: solid, pattern, hatch, empty
 * Text elements: text, restricted text, append text (attribute changes within a text string are not recognized)
 * Polygon set

Note: Although not clearly documented in ANSI CGM specification 3.122-1986, all text strings in a CGM file must be preceded by a &quot;length field&quot; of 1 byte. All applications that generate CGM will include this length field.

Non-Supported CGM Elements
The following CGM graphical primitive and attribute elements are not supported:


 * Cell array
 * Character spacing
 * Character orientation
 * Character set index (only one character set is used)
 * Interior style (hollow and solid only)
 * Pattern table
 * Pattern size

For more information on the computer graphics metafile format and its elements, contact:

American National Standards Institute, Inc.

1430 Broadway,

New York, NY 10018

(212) 642-4900 Additional query words: grphflt cgmimp

Keywords : kbconversion

Issue type :

Technology :