# TextStyle Rotation Issue

**URL:** <https://community.thinkgeo.com/t/textstyle-rotation-issue/8426>\
**Category:** WinForms\
**Created:** [March 6, 2017, 6:29am UTC](https://community.thinkgeo.com/t/textstyle-rotation-issue/8426 "2017-03-06T06:29:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![riyas](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/r/c6cbf5/32.png) [@riyas](https://community.thinkgeo.com/u/riyas)\
**Post date:** [March 6, 2017, 6:29am UTC](https://community.thinkgeo.com/t/textstyle-rotation-issue/8426/1 "2017-03-06T06:29:59Z")

</div>

Hi,  
I got rotation problem in Point Feature label.  
I am applying textstyle to the Point Feature.

Code ::  
TextStyle tMain = new TextStyle(“wypt”, new GeoFont(“Arial”, 8), new GeoSolidBrush(GeoColors.Black));  
tMain.Name = “WayPointsTextStyleRoute”;  
tMain.HaloPen = new GeoPen(GeoColor.SimpleColors.White, 2);  
tMain.RotationAngle =321;  
tMain.XOffsetInPixel = 20;  
tMain.YOffsetInPixel = 5;  
tMain.BestPlacement = true;  
tMain.OverlappingRule = LabelOverlappingRule.NoOverlapping;  
tMain.DuplicateRule = LabelDuplicateRule.NoDuplicateLabels;

Result ::

 ![](https://community.thinkgeo.com/uploads/default/original/3X/c/8/c845dd05b5416c9b4ec7e020155d57a7fd45bc97.png)

Observe ‘ANRUP’ point name should come beside the Point. But it’s coming on line.  
If we Zoom in to point, Point name coming correctly. But if we Zoom out it’s getting like that.

Please check and resolve this issue.

Thanks,  
Riyaz

---

<div class="post-metadata">

**Author:** ![Ethan](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/ethan/32/19964_2.png) [@Ethan](https://community.thinkgeo.com/u/Ethan)\
**Post date:** [March 7, 2017, 9:16am UTC](https://community.thinkgeo.com/t/textstyle-rotation-issue/8426/2 "2017-03-07T09:16:37Z")

</div>

Hi Riyaz,

From your screen shot, I hadn’t found the point for ANRUP, it looks like just the label for the line.

Please create a really simple sample with your data which can reproduce this, so we can quickly look into it and see where is the problem.

Regards,

Don

---

<div class="post-metadata">

**Author:** ![riyas](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/r/c6cbf5/32.png) [@riyas](https://community.thinkgeo.com/u/riyas)\
**Post date:** [March 9, 2017, 11:20am UTC](https://community.thinkgeo.com/t/textstyle-rotation-issue/8426/3 "2017-03-09T11:20:49Z")

</div>

Hi Don,  
it’s resolved. it’s my mistake. I applied textstyle to Point and Line feature.

Thanks,  
Riyaz

---

<div class="post-metadata">

**Author:** ![Ethan](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/ethan/32/19964_2.png) [@Ethan](https://community.thinkgeo.com/u/Ethan)\
**Post date:** [March 10, 2017, 2:39am UTC](https://community.thinkgeo.com/t/textstyle-rotation-issue/8426/4 "2017-03-10T02:39:29Z")

</div>

Hi Riyaz,

I am glad to hear that works.

Regards,

Don
