Skip to content

RTLScript - type in Farsi, Arabic and Hebrew in C++ programs and get a fixed version of it!(forked from FarsiType)

License

Notifications You must be signed in to change notification settings

oscar7070/RTLScript

 
 

Repository files navigation

RTLScript is a very simple library for Farsi/Arabic/Hebrew/etc. strings written in C++20.

RTLScript is a fork of FarsiType: https://github.com/AmyrAhmady/FarsiType

RTLTypeLogo

Screenshots (using ImGui for rendering through ExtremeEngine)

Correct Form:
ScreenShot

Broken:
ScreenShot

About

Hi, i needed RTL text in my project and i found a beautiful repository named FarsiType(https://github.com/AmyrAhmady/FarsiType) and i decided to improve it for my needs.

How to use it?

RTLScript is very easy to use just call "RTLScript::ConvertToFixed":

#include "RTLScript.h"
#include <iostream>

void main()
{
    auto fixedArabicText = RTLScript::ConvertToFixed("أنا أحب الأناناس"); // Convert to fixed text.
    std::cout <<fixedArabicText; // Print the result.
}

Not working?

First, if it's not working make sure that your project setted to MultiByte or Unicode and not ASCII.

Second, check that you are using /utf-8.

Third, check if your project files saved in utf-8.

Fourth, choose a font that supports that RTL language that you want to use.

Known bugs

  • If you wrote in RTL and LTR in the same line it's maybe will be broken.

About

RTLScript - type in Farsi, Arabic and Hebrew in C++ programs and get a fixed version of it!(forked from FarsiType)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 100.0%