Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
Dunkan
Level 7

Non roman languages

Hi folks,

This has been asked multiple times but I still didn't find a solution. If one exists, could anyone please point me to it? I am trying to display content in non Roman languages (Chinese, Russian etc) in Roku components like labels etc.. So far I can only see unsupported character boxes even for custom fonts that I am certain support those Unicode code points. Is it possible at all? Here is what I could come up with so far:

1. If I knew the language I could map Unicode into a single-byte encoding and display using my custom font. Um, it is obviously a hack.
2. This post suggests that I could could make it work with roImageCanvas but this post[/url:363pbkeh] suggests that roImageCanvas is being deprecated.

Is there a good non-hacky wa...

0 Kudos
5 Replies
gomad
Level 9

Re: Non roman languages

I am not sure if that is possible. Unless Roku supports non-roman characters display. Or if the Labels are not that long , use images Smiley Happy


regards,
GM
0 Kudos
Highlighted
Dunkan
Level 7

Re: Non roman languages

Actually it does as long as I pair it with the font that knows what I am trying to do. The whole idea is borrowed from single by encoding which Russian Internet segment was using before Unicode.
0 Kudos
gomad
Level 9

Re: Non roman languages

you mean you were able to render chinese/korean/arabic/thai language fonts with customs fonts?? 
0 Kudos
Roku Employee
Roku Employee

Re: Non roman languages

"Dunkan" wrote:
Hi folks,
This has been asked multiple times but I still didn't find a solution. If one exists, could anyone please point me to it? I am trying to display content in non Roman languages (Chinese, Russian etc) in Roku components like labels etc.. So far I can only see unsupported character boxes even for custom fonts that I am certain support those Unicode code points. Is it possible at all?
Is there a good non-hacky way to solve this?


It would be helpful if you included a link to where it was asked before, as I don't recall it.
With my own RSG test app, I don't see any problems displaying Chinese or Russian characters, e.g. using Google Noto CJK font (again, for test purpose only).
Keep in mind that BrightScript strings use Unicode characters, and generally require UTF-8 encoding for binary interchange e.g. from file or network I/O.
If you're using a custom TrueType or OpenType font, make sure it includes a Unicode mapping table.
0 Kudos
cyborg
Level 7

Re: Non roman languages

"RokuKC" wrote:
"Dunkan" wrote:
Hi folks,
This has been asked multiple times but I still didn't find a solution. If one exists, could anyone please point me to it? I am trying to display content in non Roman languages (Chinese, Russian etc) in Roku components like labels etc.. So far I can only see unsupported character boxes even for custom fonts that I am certain support those Unicode code points. Is it possible at all?
Is there a good non-hacky way to solve this?


It would be helpful if you included a link to where it was asked before, as I don't recall it.
With my own RSG test app, I don't see any problems displaying Chinese or Russian characters, e.g. using Google Noto CJK font (again, for test purpose only).
Keep in mind that BrightScript strings use Unicode characters, and generally require UTF-8 encoding for binary interchange e.g. from file or network I/O.
If you're using a custom TrueType or OpenType font, make sure it includes a Unicode mapping table.

I have Synology NAS, and some files names are in Russian language, and all russian letters are invisible in Roku Media Player, so it is very difficult to understand what is the real name
0 Kudos