font header #151
Replies: 5 comments 12 replies
-
Hi Firstly, all text output functions work only with single-byte characters. This means we need a font where all Hindi characters have codes from 127 to 255. And we need to convert the source text from Unicode to the encoding of our font. Secondly, as far as I know, there are many variants of writing letters in Hindi. That is, elements can be added to each letter, displayed above or below the line. When I worked with Devanagari, these elements were used as separate letters, which led to a problem - they were drawn not under or above the letter, but next to it. This also needs to be solved. On the link below you can read a long thread about how we tried to solve this and see pictures of what we got: The main problem here is that I do not know Hindi and therefore can not help much if problems arise. |
Beta Was this translation helpful? Give feedback.
-
Below another interesting link. |
Beta Was this translation helpful? Give feedback.
-
Thank you for replying. Displaying fixed test is much easy. But the text to display comes from either mobile or computer typed in the Indian language. So what the controller gets is a string of unicode numbers. This string needs to be processed to display the text correctly. This is where google api comes in. However it is not possible to use it in the controller. But I can create fonts for all the single and double characters and map it to the specific unicode formations (needs a procedure to properly process the string). But this require more than 127 characters. DMD32 for ESp32 has this limitation (I think). I have already done some work on this line to extract the unicode numbers from the string and map them to individual characters. Next I shall implement the combinations too. Thank you very much. |
Beta Was this translation helpful? Give feedback.
-
Do you need any assistance from me? |
Beta Was this translation helpful? Give feedback.
-
Thanks to all your help, I could display the Indian-Malayalam Language characters successfully creating additional characters and updating an existing GFX font file. Hope in a couple of days , I can finish the whole setup. Some of the key points : There is no requirement of additional level shifters. This is great particularly for small or medium projects. Works for both mono and rgb boards. Different library means more headache to maintain. Use of FTDI and serial is much better than ST-Link (Not related to DMD_STM32). Thank you very much for a wonderful library. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
First of all , let me thank you for a wonderful library.
I have used DMD32 + ESP32 for its wifi capability and cost effectiveness. However it cannot render Indian languages like Malayalam (unicode 3330 to 3439) . I think it can do only 0 to 127. Is there any such limitation for DMD_STM32 too?
problem with indian languages are the ligatures and double joints. for example
the unicode string for നമോ shall be നമോ = where
ന is ന
മ is മ
ോ is ോ - the first part goes to the left of previous character മ and the second part goes to its right. This is one issue. The second is that of double characters.
for example the english word
matt shall be മാറ്റ് a combination of 4 unicode characters മ, ാ, റ (double) ്
Not all the double characters are rendered one below the other. Some goes side by side too.
In most of the language utilities googly API is used to render the words correctly as per my understanding.
Can DMD_STM32 do this correctly. ?
Beta Was this translation helpful? Give feedback.
All reactions