This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TM4C129XNCZAD: Arabic font support

Part Number: TM4C129XNCZAD

Hello,

We have a product which use the 7" touch screen. currently i have a client who want to display Arabic string on the screen, and i search in all the samples but the samples are demo many other language rather than the Arabic.

So i have the following questions:

1- can we display the Arabic string on the screen?

2- how can you help me to achieve my goal, in other word, what are the available resources that i have to learn how display the Arabic string on the screen.

3- is there a sample that demo the Arabic string on the screen.

4- in "lang_demo" example, if i added different strings to csv file, how can i compile the make file? 

5- in grlib.h, there is "Language identifiers supported by the string table processing functions.", if i'm going to use the Arabic language, shall i modify this header and if so what should be language identifier used by Arabic language?

Best Regards,

Mohammed Fawzy

  • Hi Mohammed,

    First of all, I don't have knowledge in the graphic library font creation. I find some past posts that may help you. Hopefully, there are experts in the forum who can shed some lights here too.

    e2e.ti.com/.../417857
    e2e.ti.com/.../341914

    I also read an internal post that says something like the below.

    "I am not an expert with this tool but I went through the documentation and mkstringtable.exe has support for UTF-8 encoding. I searched online and Arabic font is supported with UTF-8 encoding. The document "SW-TM4C-TOOLS-UG-2.1.0.12573.pdf" in the "docs" folder of TivaWare has details of using mkstringtable.exe to create string tables with UTF-8 encoding. This I believe will create the necessary .c and .h files with Arabic font support."
  • Hi Charles,

    i read more about the grlib and the following contains is gotten from spmu300d.pdf

    so the current grlib is supporting different encoding scheme like UTF8, iso8859-1, iso8859-2, so on. but the big issue with the rendering for the right-to-left language like the Arabic language.

    and at this point, i'm wondering if TI is going to provide the rendering of the right-to-left language in future or not. and if not, does anyone have a resource for a ready made rendering for the Arabic language?

    Regards,

    Mohammed Fawzy

  • Hi Mohammed,

      Unfortunately, there is currently no plan to update the graphic library for supporting right-to-left languages. I find below note in the graphic user's guide. It looks like you will need to solve the right-to-left language support by replacing the GrDefaultStringRenderer() with one which complies with the text formatting rules required by the desired languages. 

    3.2.4.1 Text Rendering Direction

    Left-to-right text rendering is used by all western European languages and is also supported for Chinese, Japanese and Korean. Other languages, notably Hebrew and Arabic, require right-to-left text rendering with the ability to insert left-to-right strings within the base left-to-right text. While such languages could be rendered by reformatting the source text into display order and rendering it left-to-right, the base graphics library does not currently support the ability to render strings stored in reading order in these languages. To support different rendering directions, a replacement string renderer could be modeled on GrDefaultStringRenderer() but update the rendering coordinates for each character differently to provide right-to-left rather than left-to-right text.