Frequently asked question
Code:
CMoFont fnt;
// similar to CreateDispatch
fnt.InitializeFont();
fnt.SetName(TEXT("Wingdings"));
CMoSymbol sym(tLayer.GetSymbol(0));
sym.SetColor(moRed);
sym.SetStyle(moTrueTypeMarker);
sym.SetFont(fnt);
sym.SetSize(12);
sym.SetCharacterIndex(221);
fnt.ReleaseFont();
Code:
sym.SetFont(fnt.GetFontDispatch());
Code:
sym.SetFont(fnt);
Get help from ArcGIS experts
Download the Esri Support App