ThinkGeo.com    |     Documentation    |     Premium Support

GeoFont wiht both bold and italic

Hi,

I would like to be able to create a custom GeoFont with the ability to have both Bold and Italic style attributes. I am not able to find a way to do this using the.Style attribute of the GeoFont.

Thanks!
Josh

Hi Josh,

The code as below should be what you want:

DrawingFontStyles draingFontStyles = DrawingFontStyles.Bold | DrawingFontStyles.Italic | DrawingFontStyles.Underline;
GeoFont font = new GeoFont(“Arial”, 10, draingFontStyles);

Regards,

Don

Hi Don,

That worked for me thank-you for your help!

Thanks!
Josh

Hi Josh,

I am glad to hear that works.

Regards,

Don