Making a character marker symbol
Character marker symbols allow you to use glyph patterns from a font as the symbol for a marker. The glyph can be from a TrueType, OpenType, or PostScript Type-1 font.
The following code example shows the steps for creating a marker using the ESRI Default Marker TrueType font:
[Java]
static void characterMarkerSymbol()throws Exception{
// Define the color we want to use
IRgbColor color = new RgbColor();
color.setRed(255);
color.setGreen(0);
color.setBlue(0);
// Define the Font we want to use
StdFont font = new StdFont();
font.setName("ESRI Default Marker");
font.setSize(24);
// Set the CharacterMarkerSymbols Properties
ICharacterMarkerSymbol characterMarkerSymbol = new CharacterMarkerSymbol();
characterMarkerSymbol.setAngle(90);
characterMarkerSymbol.setCharacterIndex(36);
characterMarkerSymbol.setColor(color);
characterMarkerSymbol.setFont(font);
characterMarkerSymbol.setSize(24);
characterMarkerSymbol.setXOffset(0);
characterMarkerSymbol.setYOffset(0);
}
See Also:
How to make a cartographic line symbolHow to make a gradient fill symbol
How to make a line callout
How to make a line fill symbol
How to make a picture marker symbol
How to make different types of colors
| Development licensing | Deployment licensing |
|---|---|
| ArcGIS for Desktop Basic | ArcGIS for Desktop Basic |
| ArcGIS for Desktop Standard | ArcGIS for Desktop Standard |
| ArcGIS for Desktop Advanced | ArcGIS for Desktop Advanced |
| Engine Developer Kit | Engine |