Your Digital Media Has Never Looked So Good

 
Dunkan
Topic Author
Posts: 2
Joined: Thu Dec 13, 2018 7:53 am

Non roman languages

Thu Dec 13, 2018 8:13 am

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 suggests that roImageCanvas is being deprecated.

Is there a good non-hacky way to solve this?

Cheers
 
gomad
Posts: 48
Joined: Wed Nov 29, 2017 4:07 am

Re: Non roman languages

Fri Dec 14, 2018 12:11 am

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 :)


regards,
GM
 
Dunkan
Topic Author
Posts: 2
Joined: Thu Dec 13, 2018 7:53 am

Re: Non roman languages

Sat Dec 15, 2018 11:57 am

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.
 
gomad
Posts: 48
Joined: Wed Nov 29, 2017 4:07 am

Re: Non roman languages

Thu Dec 27, 2018 10:08 pm

you mean you were able to render chinese/korean/arabic/thai language fonts with customs fonts?? 
 
User avatar
RokuKC
Posts: 308
Joined: Wed Sep 10, 2014 10:44 am
Location: Roku HQ

Re: Non roman languages

Fri Dec 28, 2018 6:43 pm

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.

Who is online

Users browsing this forum: No registered users and 8 guests