Creating Marker Sets and Pattern Sets

Like character sets, marker sets and pattern sets are defined in fonts. For both marker sets and pattern sets, there are system-provided defaults. You also can create your own image markers or patterns, but not outline markers or patterns, using the Font Editor. The font definition containing the image or pattern can be loaded either as a public font (using the Install selection from the Control Panel) or as a private font (using GpiLoadFonts). The current character mode has no effect on marker sets and pattern sets. Any character from a font can be used as a marker or as an area-fill pattern.

Before you can use a locally defined marker set or pattern set, you must call GpiCreateLogFont to define a logical font and to give it an lcid, just as you would for a character font. Most of the values you can specify with GpiCreateLogFont are not applicable to marker sets and pattern sets. Furthermore, in the instance of marker sets and pattern sets, you usually know that you want to use a particular font.

To select a locally defined marker set or pattern set:

To revert to using the default pattern or marker sets, call GpiSetPatternSet or GpiSetMarkerSet with the value LCID_DEFAULT.


[Back: Creating Fonts]
[Next: Using Bit Maps as Area-Fill Patterns]