Arabic TMPro

Is there any good solution to handle Arabic for TMPro yet without changing from the standard TMPro scripts?

Last time I looked at it I requested a OnTextChanged callback from the labels so one could implement the arabic fixed in that callback but there was no such thing back then.

The following interface was added several months ago to enable users to implement their own text pre-processing where the shaping can take place.

/// <summary>
/// Interface used for preprocessing and shaping of text.
/// </summary>
public interface ITextPreprocessor
{
    /// <summary>
    /// Function used for preprocessing of text
    /// </summary>
    /// <param name="text">Source text to be processed</param>
    /// <returns>Processed text</returns>
    string PreprocessText(string text);
}

Awesome! Thanks a lot, exactly what I was requesting back when I worked with the Apple Arcade launch game I did :slight_smile:

1 Like