Empyreus / lanterna

Automatically exported from code.google.com/p/lanterna
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Investigate CJK capabilities #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
We need to investigate how well Chinese, Japanese and Korean characters work 
with Lanterna. In theory it should work, but it hasn't really been tested.

Original issue reported on code.google.com by mab...@gmail.com on 4 Jul 2012 at 8:12

GoogleCodeExporter commented 9 years ago
Created a test class that prints some CJK characters. The SwingTerminal doesn't 
render the characters correctly due to incompatible font but when I run it 
through Putty I get Chinese and Japanese; Korean seems to be missing from 
whatever font Putty is using.

Original comment by mab...@gmail.com on 4 Jul 2012 at 12:27

GoogleCodeExporter commented 9 years ago
Modified the SwingTerminal so that you can choose your font. This should do it 
for this issue, I don't think there's much else to do. This is mostly a font 
issue, after all.

Original comment by mab...@gmail.com on 7 Jul 2012 at 9:00

GoogleCodeExporter commented 9 years ago
If you have a method to display CJK characters , please let me know. I need to 
display Korean characters. 

nightswan0414@gmail.com

thanks.
Yoon

Original comment by nightswa...@gmail.com on 20 Jan 2013 at 2:38

GoogleCodeExporter commented 9 years ago
Reopening; CJK doesn't work well with SwingTerminal due to monospaced fonts not 
having the same width at latin characters.

Original comment by mab...@gmail.com on 20 Jan 2013 at 9:43

GoogleCodeExporter commented 9 years ago
Putty is treating CJK characters as two 'joined' characters, making the cursor 
twice as wide. We should do something similar here.

Original comment by mab...@gmail.com on 20 Jan 2013 at 9:55

GoogleCodeExporter commented 9 years ago
I have a quick fix in for now, which will render CJK characters with a separate 
font. The separate font will be sized so that it fits with the latin characters 
in width, which unfortunately makes the CJK characters too small to read. The 
solution is then to increase the overall font size by passing in a custom 
TerminalAppearance. 

For the next (2.2 or 3.0) lanterna release, we should fix this properly.

Original comment by mab...@gmail.com on 20 Jan 2013 at 10:43

GoogleCodeExporter commented 9 years ago
Closing this now, CJK support should be complete in lanterna 3.0

Original comment by mab...@gmail.com on 18 Jun 2014 at 12:33