# Change TextRotation degrees

**URL:** <https://forums.eggplantsoftware.com/t/change-textrotation-degrees/14528>\
**Category:** Eggplant Functional\
**Tags:** script, sensetalk, eggplant-functional\
**Created:** [July 29, 2025, 6:46pm UTC](https://forums.eggplantsoftware.com/t/change-textrotation-degrees/14528 "2025-07-29T18:46:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![scsvel](https://forums.eggplantsoftware.com/user_avatar/forums.eggplantsoftware.com/scsvel/32/316_2.png) [@scsvel](https://forums.eggplantsoftware.com/u/scsvel)\
**Post date:** [July 29, 2025, 6:46pm UTC](https://forums.eggplantsoftware.com/t/change-textrotation-degrees/14528/1 "2025-07-29T18:46:38Z")

</div>

May I know if there is possibility to change the degrees for checking the text using TextRotation property? My text is like in 45 degrees from horizontal line, and these predefined values are not supporting to find.

> **[Text Properties | EPF Docs](https://docs.eggplantsoftware.com/epf/epf-text-references/#textrotation-example)**
>
> Searching for or reading text on your system under test (SUT) using optical character recognition (OCR) requires use of a text property list. These property lists have a wide variety of properties you can include, depending on the text you are...

---

<div class="post-metadata">

**Author:** ![Karsten](https://forums.eggplantsoftware.com/letter_avatar_proxy/v4/letter/k/e47c2d/32.png) [@Karsten](https://forums.eggplantsoftware.com/u/Karsten)\
**Post date:** [August 4, 2025, 11:56am UTC](https://forums.eggplantsoftware.com/t/change-textrotation-degrees/14528/2 "2025-08-04T11:56:24Z")

</div>

Hey @scsvel,

Unfortunately this is not possible and it seems our OCR Engine does not provide any 45 degree increments for the rotate option.

You may want to file a feature request for this one.

Cheers,  
Karsten

---

<div class="post-metadata">

**Author:** ![wiliam65jenny](https://forums.eggplantsoftware.com/letter_avatar_proxy/v4/letter/w/e47c2d/32.png) [@wiliam65jenny](https://forums.eggplantsoftware.com/u/wiliam65jenny)\
**Post date:** [June 3, 2026, 12:53pm UTC](https://forums.eggplantsoftware.com/t/change-textrotation-degrees/14528/3 "2026-06-03T12:53:39Z")

</div>

If you are working with OCR (Optical Character Recognition) engines like Tesseract or specific CAD/document APIs, you’ve likely hit a wall because many standard TextRotation properties only support 90-degree increments (0, 90, 180, 270).However, you can handle a 45-degree tilt. Since most built-in “TextRotation” properties are restricted, the solution usually involves Pre-processing or Coordinate Transformation rather than just changing a single property value.1. Image Pre-processing (Deskewing)Instead of asking the OCR to “read at 45 degrees,” it is much more effective to rotate the image itself by -45 degrees before the text detection begins.How it works: You use a library like OpenCV or Skimage to rotate the entire canvas.The Math: If your text is at $45^\circ$, rotating the image by $-45^\circ$ aligns the text pixels with the horizontal axis, making it readable by standard engines.2. Geometric Coordinate MappingIf you are working in a system like AutoCAD or PDF generation where the text is already “digital” but the search tool isn’t finding it, you need to account for the vector components.Text at a 45-degree angle follows the relationship:$$x’ = x \cos(45^\circ) - y \sin(45^\circ)$$$$y’ = x \sin(45^\circ) + y \cos(45^\circ)$$

---

<div class="post-metadata">

**Author:** ![DaveHester](https://forums.eggplantsoftware.com/user_avatar/forums.eggplantsoftware.com/davehester/32/104_2.png) [@DaveHester](https://forums.eggplantsoftware.com/u/DaveHester)\
**Post date:** [June 3, 2026, 11:30pm UTC](https://forums.eggplantsoftware.com/t/change-textrotation-degrees/14528/4 "2026-06-03T23:30:38Z")

</div>

I have had some good luck with the new Find by description recognizing text on a 45 degree angle.
