java - How to make JTextField render supplementary characters -


i tried set jtextcomponent widgets (mostly jtextfield components) enter text in unicode. in this, need render sinhala characters. set iskoola pota font in my
works fine of time fails @ points.

characters 1 or 2 characters render correctly.

ex: අම්මා, වයඹ, අධිකාරිය 

but problem comes characters 3 characters.

ex: ප්‍රවෘත්ති (this rendered ප්රවෘත්ති) ව්‍යාපෘතිය (this rendered ව්යාපෘතිය) 

the matter characters such ප්‍ර rendered (ප්ර) , ව්‍යා rendered (ව්යා). screenshot provided below.

image here : http://i.stack.imgur.com/bqrqb.png here, අම්මා, වයඹ, අධිකාරිය rendered ප්‍රවෘත්ති , ව්‍යාපෘතිය words render incorrectly.

i have updated jdk version , jre also. here version details shown in netbeans ide.

java: 1.7.0_40; java hotspot(tm) client vm 24.0-b56 runtime: java(tm) se runtime environment 1.7.0_40-b43 system: windows 7 version 6.1 running on x86; cp1252; en_us (nb) 

i cannot understand how implement supplementary characters , surrogate pair api jsr204 in program. kind of appreciated. thank in advance.

try see how layoutglyphvector works triple chars. provide correct representation? if yes can try set custom glyphpainter described here http://java-sl.com/scale_in_jeditorpane_glyphpainter.html


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -