Skip to main content
Question

Is there any way to get or set text direction (RTL vs LTR) in a Figma plugin?

  • May 11, 2025
  • 0 replies
  • 43 views

Mumin Morgan

Hey everyone—

I’m working on a Figma plugin that helps with Arabic and English interfaces. One issue I keep running into: I can’t figure out how to detect or set the text direction (like right-to-left for Arabic).

 

The plugin API doesn’t seem to have anything like textDirection, and I’ve tried checking the characters in the text manually, but it’s messy—especially when the text mixes Arabic and English, or has numbers and punctuation.

 

I just want to know if there's any way, even a workaround, to know whether a text node is RTL or LTR, and ideally control it from the plugin.

 

Has anyone dealt with this before?

 

Thanks in

advance!

0 replies

Be the first to reply!