Bug Rendering UNICODE in XBMC/KODI Incorrectly
#16
I know its difficult to understand. But thanks for your time mate.
Practically yes, Technically No,
I'll explain again,
For Tamil and more Indic Languages they have lot of letters. For Tamil they have 247 unique letters. they cannot make it on key board so they simplified those letters easy to type.

for example, Skin - called "தோல்" in Tamil
it only makes with 2 letters. but with computerized letter they used 4 letters.
ோ+த+ல+்
You may know that circle showing on first letter will be replace with next letter.
Image

for you reference
https://en.wikipedia.org/wiki/Tamil_script




(2015-10-25, 21:18)Razze Wrote: So the problem is that you can get it to draw with an unicode font, but that leads to the first letter switching places with the second?
Reply
#17
bump
Reply
#18
@Cyberrule & @geeth321

Did you guys find an alternative way to accomplish ?
Reply
#19
bumping this up as its still an issue with Kodi 19
I have also created an issue https://github.com/xbmc/xbmc/issues/19692
Reply
#20
If someone needs to test Tamil script, the following dropbox download is available.  It provides the default Kodi "arial.ttf" with added characters for the Tamil script.  https://www.dropbox.com/s/enpbwqr5gu7611...l.zip?dl=0

To use it replace the default file in your Kodi install folder/media/Fonts

scott s.
.
maintainer of skin  Aeon MQ5 mods for post-Gotham Kodi releases:
Matrix see: Aeon MQ5 Mod Martix release thread
Leia see: Aeon MQ5 Mod Leia release thread
Reply
#21
I came to the forum with the same issue as the user @Cyberrule

I tried installing several Tamil Fonts and nothing seems to fix the issue. 

Could it have something to do with the Character Encoding? 

Under character set in Kodi settings, there is no option for me to select "Full Unicode" which is listed in this page


But I have no idea about the technicalities. :-( 

If I remember correctly, this issue with rendering Tamil and Malayalam texts used to happen with many different applications (such as XFCE, LXDE, Chromium, etc,) but that was almost a decade ago. 

I hope it gets fixed soon.
Reply
#22
(2021-05-15, 04:16)scott967 Wrote: If someone needs to test Tamil script, the following dropbox download is available.  It provides the default Kodi "arial.ttf" with added characters for the Tamil script.  https://www.dropbox.com/s/enpbwqr5gu7611...l.zip?dl=0

To use it replace the default file in your Kodi install folder/media/Fonts

scott s.
.
Sorry, I messed up my Font.xml file in the /usr/share/kodi/addons/skin.estuary/xml/ folder. 

I want to try using your font, but is there a way to restore or download a fresh copy of the Font.xml file ?
Reply
#23
(2021-05-15, 04:16)scott967 Wrote: If someone needs to test Tamil script, the following dropbox download is available.  It provides the default Kodi "arial.ttf" with added characters for the Tamil script.  https://www.dropbox.com/s/enpbwqr5gu7611...l.zip?dl=0

To use it replace the default file in your Kodi install folder/media/Fonts

scott s.
.
Sorry, I messed up my Font.xml file in the /usr/share/kodi/addons/skin.estuary/xml/ folder. 

I want to try using your font, but is there a way to restore or download a fresh copy of the Font.xml file ?
Reply
#24
(2021-05-22, 12:13)deadrat Wrote:
(2021-05-15, 04:16)scott967 Wrote: If someone needs to test Tamil script, the following dropbox download is available.  It provides the default Kodi "arial.ttf" with added characters for the Tamil script.  https://www.dropbox.com/s/enpbwqr5gu7611...l.zip?dl=0

To use it replace the default file in your Kodi install folder/media/Fonts

scott s.
.
Sorry, I messed up my Font.xml file in the /usr/share/kodi/addons/skin.estuary/xml/ folder. 

I want to try using your font, but is there a way to restore or download a fresh copy of the Font.xml file ?

If you have 7zip on your system (or probably any other unzip) you can open the Kodi install exe and extract font.xml.  Alternatively, you can get it off the xbmc github repo https://github.com/xbmc/xbmc/tree/Matrix...stuary/xml

scott s.
.
maintainer of skin  Aeon MQ5 mods for post-Gotham Kodi releases:
Matrix see: Aeon MQ5 Mod Martix release thread
Leia see: Aeon MQ5 Mod Leia release thread
Reply
#25
(2021-05-22, 12:10)deadrat Wrote: I came to the forum with the same issue as the user @Cyberrule

I tried installing several Tamil Fonts and nothing seems to fix the issue. 

Could it have something to do with the Character Encoding? 

Under character set in Kodi settings, there is no option for me to select "Full Unicode" which is listed in this page


But I have no idea about the technicalities. :-( 

If I remember correctly, this issue with rendering Tamil and Malayalam texts used to happen with many different applications (such as XFCE, LXDE, Chromium, etc,) but that was almost a decade ago. 

I hope it gets fixed soon.

The technicality is that some scripts are considered "complex".  For these scripts it is insufficient to simply look up a unicode codepoint in a font file and get the glyph(s) and render them.  Complex scripts need to have a set of rules for rendering characters, and to support these rules font files need to have 2 open-type font tables, GSUB and GPOS, which the rules use to modify or substitute the glyphs pulled from the font file and then rendered.

Kodi uses the "freetype" open source library to access font files.  In the past freetype had some capability to process complex scripts, but a decision was taken by the freetype devs to remove the code for dealing with complex scripts.  That code forms the basis for a second open source project that goes by the name of HarfBuzz.  Kodi does not currently use the HarfBuzz library.  The good news is that there is development underway to add HarfBuzz to Kodi and use it to shape complex scripts.  The bad news is this is a Kodi version 20 project so if/when it gets completed it will only be available in Kodi nightly builds until such time as Kodi 20 is released.

scott s.
.
maintainer of skin  Aeon MQ5 mods for post-Gotham Kodi releases:
Matrix see: Aeon MQ5 Mod Martix release thread
Leia see: Aeon MQ5 Mod Leia release thread
Reply



Logout Mark Read Team Forum Stats Members Help
Rendering UNICODE in XBMC/KODI Incorrectly0
This forum uses Lukasz Tkacz MyBB addons.