Posts: 10,680
Joined: Oct 2011
Reputation:
657
jjd-uk
Team-Kodi Member
Posts: 10,680
Have you tried changing the Font in Settings -> Appearance -> Skin to Arial
Posts: 3,384
Joined: Aug 2012
Reputation:
107
braz
Skilled Skinner
Posts: 3,384
If you don't mind trying another skin, you can install Mimic in Kodi 17 and change the font to Jaldi.
Posts: 3,384
Joined: Aug 2012
Reputation:
107
braz
Skilled Skinner
Posts: 3,384
Mimic 5 also supports Tamil with the Catamaran font. Not sure if a single font supports both type families though, you'd have to try it.
Posts: 5,445
Joined: Jul 2012
Reputation:
380
I don't think there are many experts in Indic languages here. Could you provide the sample text strings maybe from strings.po in resource.language.ml_in and maybe some screenshots of proper rendering? Also what font you used for testing?
I'm guessing the problem is in the freetype 2 methods Kodi uses to render text from ttf fonts.
scott s.
.
Posts: 5,445
Joined: Jul 2012
Reputation:
380
2019-04-16, 23:30
(This post was last modified: 2019-04-16, 23:32 by scott967.)
First, I am not export of Kodi's code so this is sort of a guess
From what I see, Kodi uses Freetype 2 to render the glyphs found in trutype fonts into screen bitmaps. Freetype basically does glyph lookup using the font's unicode cmap table and sizes / hints the resulting glyph with I guess some combining/positioning capabilities for compound characters (characters composed of two or more glyphs).
However, it appears that some more complex shaping required in certain script6s such as Arabic and Indic must follow certain rules established in the opentype spec. The freetype devs consider implementing these shaping rules outside the scope of freetype. There exist implementations such as Harfbuzz in Linux.
So, I don't see any easy fix for this problem. It will require a dev with knowledge of typographic rendering to understand / update Kodi's font rendering code.
scott s.
.
Posts: 1
Joined: Jun 2019
Reputation:
0
Hi,
What does Kodi use for rendering and text shaping? Can it use Pango/Harfbuzz since those provide great support for almost all scripts and languages ?