Hi ThinkGeo,
Is it possible to combine one or more Font style like Bold and Underline.?
I want to display on WebImage class .
Regards,
Anil
Hi ThinkGeo,
Is it possible to combine one or more Font style like Bold and Underline.?
I want to display on WebImage class .
Regards,
Anil
Hello Anil,
Thanks for your post, please try to use DrawingFontStyles.Bold | DrawingFontStyles.Underline. I hope it can help.
Any more questions please feel free to let me know.
Regards,
Gary
Hi Gary,
I tried using DrawingFontStyles.Bold | DrawingFontStyles.Underline but it did not help. It gives me regular font.
I am using 5.011
Regards,
Anil
Hello Anil,
It should work like this:
majorCitiesLabelLayer.ZoomLevelSet.ZoomLevel01.DefaultTextStyle = TextStyles.CreateSimpleTextStyle("AREANAME", "Verdana", 20, DrawingFontStyles.Bold | DrawingFontStyles.Underline, GeoColor.StandardColors.Black);
Could you please check and have a try again?
Regards,
Gary
Hi Gary,
To illustrate the problem I used sample
protected
{
{
markerOverlay.ZoomLevelSet.ZoomLevel01.DefaultMarkerStyle.WebImage.Text =
markerOverlay.ZoomLevelSet.ZoomLevel01.DefaultMarkerStyle.WebImage.FontColor =
markerOverlay.ZoomLevelSet.ZoomLevel01.DefaultMarkerStyle.WebImage.FontStyle =
markerOverlay.ZoomLevelSet.ZoomLevel01.DefaultMarkerStyle.WebImage.TextOffsetX = -7F;
markerOverlay.ZoomLevelSet.ZoomLevel01.DefaultMarkerStyle.WebImage.TextOffsetY = -3F;
}
void ShowTextCheckBox_CheckedChanged(object sender, EventArgs e)InMemoryMarkerOverlay markerOverlay = (InMemoryMarkerOverlay)Map1.CustomOverlays["MarkerOverlay"];if (ShowTextCheckBox.Checked)"Vehicle";GeoColor.StandardColors.OrangeRed;new GeoFont("Arail Black", 12, DrawingFontStyles.Bold | DrawingFontStyles.Underline | DrawingFontStyles.Strikeout);else
{
markerOverlay.ZoomLevelSet.ZoomLevel01.DefaultMarkerStyle.WebImage.Text =
}
}
string.Empty;
LabelAndRotateAMarker in websample. Attached is the result (see font is Regular instead of Bold, underlined and strikethrough.
Dear Anil,
Thanks for your sample, I have recreated the problem, looks like it work fine in texttyle but fontstyle, I have reported to our product team, and please subscribe this post, I will tell you what they find.
Regards,
Gary
Hello Anil,
I want you know, our product team have fixed the problem, please get the latest daily build (5.0.40.0 or later) to have another try.
Regards,
Gary
Thanks it works on 5.04.0
Anil,
I’m glad it’s working now.
Any questions please tell me.
Regards,
Gary