I’m trying to override the DrawCore function of a custom style that is using PointType.Character to rotate the characters. I know there’s a RotationAngle property, but I need to set it differently for each feature using this style. I tried doing it like the ScalingImageStyleModel, but that was using canvas.DrawWorldImage function. I don’t see a draw function for PointType.Character though.
The angle would be given from a columvalue of the features using the style. Specifically this:
feature.ColumnValues["Angle"]
The custom font style is set up with this constructor:
public FontPointStyleModel(string name, int symbolType, string hexColor, int size, string fontName, int characterIndex)
{
Color = GeoColor.FromHtml("#" + hexColor);
Size = size;
this.Name = name;
this.PointType = PointType.Character;
this.CharacterFont.FontName = fontName;
this.CharacterIndex = characterIndex;
this.CharacterFont.Size = Size;
this.CharacterSolidBrush = new GeoSolidBrush(Color);
}