Skip to content
Games By Cube Localization Team 7 min read

Arabic Fonts and RTL in Unity and Unreal: Common Fixes

Arabic needs two things most game text pipelines skip: shaping, so letters connect and change form, and right-to-left (bidirectional) layout. In Unreal,…

Arabic Fonts and RTL in Unity and Unreal: Common Fixes

Short answer: Arabic needs two things most game text pipelines skip: shaping, so letters connect and change form, and right-to-left (bidirectional) layout. In Unreal, the text system already shapes Arabic and handles direction, so most fixes are fonts and UI mirroring. In Unity, many setups need an extra shaping step before text reaches the renderer. Test in the build, not in spreadsheets.

The classic Arabic game bug looks like this: every letter appears on screen, but separately, in the wrong order, reading left to right. To an Arabic player it is unreadable, and it is often the first thing they screenshot and share. The fix is rarely translation; it is engineering. This guide explains what is going on and the common fixes in Unity and Unreal, so your team can plan Arabic support before the strings arrive.

Why Arabic text breaks in games

Arabic differs from Latin scripts in three ways that matter to a renderer:

  • Shaping. Most Arabic letters have up to four forms (isolated, initial, medial, final) depending on their neighbours, and some pairs form ligatures such as lam-alef. Text stored in a file contains the basic letter codes; a shaping engine has to pick the right glyph for each position.
  • Direction. Arabic is written right to left, but numbers and embedded English words run left to right inside it. The Unicode Bidirectional Algorithm decides the visual order of mixed text.
  • Vertical metrics and diacritics. Optional vowel marks (harakat) sit above and below letters, so line height and clipping need more room than Latin fonts.

If any of these steps is missing, you get disconnected letters, reversed sentences, punctuation on the wrong side, or numbers flipped. That is why our internationalization checklist treats RTL as a decision to make early, not a patch.

Illustration of a developer adjusting a game interface with a cartoon hero and a speech bubble aligned to the right
Arabic support is mostly an engineering task: shaping, direction and mirrored layout.

Common symptoms and what causes them

What you seeLikely causeUsual fix
Letters separated, not joinedNo shaping stepEnable or add a shaping stage
Words in reverse orderText not processed for bidi, or reversed twiceUse one bidi step, not manual reversing
Empty boxes instead of lettersFont lacks Arabic glyphs or presentation formsUse an Arabic-capable font or fallback
Numbers or English words flippedNaive string reversalProper bidirectional algorithm
Diacritics cut off at the topLine height or mask too tightIncrease line spacing and padding
Punctuation on the wrong sideBase direction set to LTRSet paragraph direction to RTL

Arabic in Unreal Engine

Unreal's text system includes a shaping engine and bidirectional support, so Arabic usually renders correctly in UMG and Slate widgets as long as the font contains Arabic glyphs. The common fixes are about configuration and layout rather than shaping:

  • Fonts. Use a composite font with an Arabic sub-font range, or a font family that covers Arabic and Latin. Check that bold and other weights also cover Arabic.
  • Shaping method. Text widgets expose a shaping setting. Make sure Arabic text uses full (not simplified) shaping; simplified modes are meant for scripts that do not need complex shaping.
  • Flow direction. Widgets can follow the culture's direction or be forced to left-to-right or right-to-left. Let localized text follow the culture so Arabic paragraphs align and wrap correctly.
  • Layout mirroring. Text direction is not the whole UI. Health bars, menus, progress indicators and back arrows often need to mirror. Plan which elements flip and which stay (media controls and game maps often stay as they are).
  • Localization dashboard. Gather text through the engine's localization tools so Arabic strings are imported as a culture rather than as hard-coded replacements.

Always confirm behaviour in your engine version's documentation; settings names and defaults change between releases.

Arabic in Unity

Unity projects vary more, because text can be rendered by different systems (the widely used TextMeshPro, the legacy UI text, UI Toolkit, or third-party text tools). Historically, many of these have not applied full Arabic shaping on their own. Some offer a right-to-left option, but reversing the order is not the same as shaping, and Arabic letters still appear disconnected. The common approaches are:

  • Pre-shape the text before display. A shaping step converts Arabic letters into the correct contextual forms and applies bidi ordering, then the result is passed to the text component. This can be done with an open-source or commercial shaping library, or with a text engine based on HarfBuzz. Choose one that handles lam-alef ligatures, diacritics, mixed numbers and line wrapping.
  • Handle line wrapping after shaping. A frequent bug: text is shaped and reversed as one line, then the component wraps it, and lines come out in the wrong order. Make sure the solution wraps correctly for multi-line RTL text.
  • Font assets. Font atlases must include Arabic glyphs, including presentation forms if your shaping approach relies on them. Dynamic atlases help, but test performance on mobile.
  • Input fields. Player names and chat are harder than static text, because shaping must update as the player types and the caret must move correctly. Test these separately.
  • Check your version. Text support improves across Unity releases and packages. Before adding a third-party solution, check what your current Unity version and text package support natively.
Six-stage Arabic text pipeline for games: Unicode strings, shaping, bidi ordering, Arabic font, line wrapping, mirrored UI
Every Arabic string has to pass through shaping, ordering and an Arabic-capable font before it reaches the screen.

Fonts: choosing and testing Arabic typefaces

  • Pick a typeface designed for Arabic, not one where Arabic was added as an afterthought. It should match the tone of your game, from clean UI sans to more decorative styles for titles.
  • Check the license covers embedding in games and all your platforms.
  • Test small sizes on mobile screens. Arabic letters have small dots that become unreadable when scaled down too far.
  • Compare visual weight with your Latin font so mixed Arabic and English lines look balanced.
  • For stylized logos and title art, hand-design the Arabic version rather than typing it in a font. Our Arabic game localization guide covers when titles should be translated, transliterated or kept.

Mirroring the UI

Arabic players expect reading flow from right to left: menus aligned right, back buttons pointing right, and lists starting on the right. A practical approach:

  • Build UI with anchors and layout groups that can flip, instead of absolute positions.
  • Mirror navigation, lists, dialogue boxes and HUD panels where reading order matters.
  • Do not mirror clocks, media play buttons, logos, or the game world itself.
  • Review icons with direction meaning, such as arrows and "next" chevrons.

Testing Arabic in the build

A spreadsheet review cannot catch rendering problems. Plan LQA in the build with native Arabic testers who check:

  • Joined letters and correct ligatures on every screen.
  • Mixed strings with numbers, variables and English brand names.
  • Multi-line text, wrapping and truncation.
  • Input fields, chat and player names.
  • Subtitles timing and reading speed.
Illustration of a programmer testing a game with mirrored interface panels on a phone and a monitor
Test Arabic on real devices: shaping, wrapping and input fields fail in ways spreadsheets cannot show.

Working with Cube Localization

English and Arabic are our home pair, and games are one of our core fields. Our native linguists have worked on titles such as PUBG and Cyberpunk 2077, and we test Arabic text in the build, not only in files. A typical case we see: a Unity project where Arabic text rendered left-to-right and mixed numbers jumped to the wrong side of the sentence. Our testers logged each screen with a screenshot and the expected layout, and the developer fixed it at the text-component level instead of patching strings one by one.

If you are planning an Arabic release, ask for a quote or read about our games and apps localization service. For market context, see the MENA gaming market.

Frequently asked questions

Why are Arabic letters disconnected in my game?

The text is being displayed without shaping. Arabic letters change form depending on their position in a word, and a shaping engine has to select those forms. Enable shaping in your text system or add a shaping step before the text is rendered.

Is reversing the string enough to support Arabic?

No. Reversing puts characters in visual order but does not join letters, and it breaks numbers, English words and multi-line text. Use proper shaping plus the Unicode bidirectional algorithm.

Does Unreal Engine support Arabic out of the box?

Unreal's text system supports complex shaping and right-to-left text, so the main work is providing Arabic fonts, using full shaping, setting text flow direction and mirroring the UI layout. Check your engine version's documentation for exact settings.

Do we need to mirror the whole UI for Arabic?

Mirror elements where reading order matters, such as menus, lists, dialogue and navigation. Keep the game world, media controls, logos and clocks as they are. Decide this per screen with your Arabic testers.

Should Arabic text use diacritics?

Usually not for general game text, because modern Arabic readers do not need them and they add layout risk. They can help in children's games, learning content, or rare names where pronunciation matters.