Bug 269700 - Terminal doesn't show multiple fonts
Terminal doesn't show multiple fonts
Status: NEW
Product: cnd
Classification: Unclassified
Component: Terminalemulator
Dev
PC Linux
: P3 (vote)
: Dev
Assigned To: ilia
issues@cnd
82patch-candidate
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-02-01 06:52 UTC by venkatramakkineni
Modified: 2017-04-03 08:18 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
:


Attachments
Terminal Emulator Image when font is set to Pothana2000 (74.01 KB, image/png)
2017-02-01 06:53 UTC, venkatramakkineni
Details
Terminal Emulator Image when font is set to UbuntoMono (91.14 KB, image/png)
2017-02-01 06:53 UTC, venkatramakkineni
Details
JComponent rendering Telugu Text (1.27 KB, text/x-java)
2017-02-01 07:08 UTC, venkatramakkineni
Details

Note You need to log in before you can comment on or make changes to this bug.
Description venkatramakkineni 2017-02-01 06:52:51 UTC
If I select Ubuntu Mono for Font in the terminal settings window, Telugu text shows as blank rectangles. 


If I select Pothana2000 font Telugu text renders okay but none of the English text renders. 

May be this is related to this SO question. 

http://stackoverflow.com/questions/5994815/rendering-devanagari-ligatures-unicode-in-java-swing-jcomponent-on-mac-os-x
Comment 1 venkatramakkineni 2017-02-01 06:53:32 UTC
Created attachment 163526 [details]
Terminal Emulator Image when font is set to Pothana2000
Comment 2 venkatramakkineni 2017-02-01 06:53:53 UTC
Created attachment 163527 [details]
Terminal Emulator Image when font is set to UbuntoMono
Comment 3 venkatramakkineni 2017-02-01 07:08:54 UTC
Created attachment 163528 [details]
JComponent rendering Telugu Text
Comment 4 venkatramakkineni 2017-02-01 07:11:25 UTC
41385 does talk about Indic fonts. But I am not certain this new bug is related to that. As the images show, The terminal renders the Telugu text very well when the font selected is Pothana2000. So the assumption than each character is a block wide doesn't seem to affect the rendering (unless I am missing something obvious).  

In my limited understanding most applications fallback to other fonts when the currently selected font doesn't support the input characters. That is why no matter what font I select, the Netbeans editor shows the other language text okay. I think this is a code issue. For some reason the default behaviour, which works on a regular JComponent is being overridden in the implementation of Term in the lib.terminalemulator. 

https://netbeans.org/bugzilla/show_bug.cgi?id=41385

Just to illustrate that the Telugu text is rendered fine on a JComponent without setting a font that explicitly supports Telugu language, I have attached is a main class that does this.


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo