[Indic-computing-users] RE: Unicode problem
Status: Alpha
Brought to you by:
jkoshy
From: <rag...@se...> - 2005-03-19 06:12:19
|
Hi, I had a similar problem long back and I sorted it out in the way describe= d below=2E But I was using JDK1=2E4=2E I hope it works the same way in JDK1=2E= 2 also=2E Java picks up the fonts from JRE_HOME/lib/fonts directory=2E So, if the tamil font is not present in this directory and or JRE_HOME/lib/fonts/fonts=2Edir and JRE_HOME/lib/font=2Eproperties file doe= sn't have entry for the tamil font, you see square boxes instead of tamil characters=2E=20 The reason why you can see the Hindi characters is JRE ships with a Hind= i font embedded into one of the font files present in JRE_HOME/lib/fonts=2E I am attaching a sample font=2Eproperties file along with this message=2E= But not sure whether it works with windows as the font=2Epropeties file struct= ure for windows and linux is different in Java=2E Dont forget to add an entry = in the fonts=2Edir file for the font that you copied to the JRE_HOME/lib/font= s directory=2E=2E The below line is the one added to make jre aware of the Telugu opentype font POTHANA=2E=20 ## A chunk of existing entries in fonts=2Edir file LucidaTypewriterRegular=2Ettf -b&h-lucidatypewriter-medium-r-normal-sans-0-0-0-0-m-0-iso8859-9 LucidaTypewriterOblique=2Ettf -b&h-lucidatypewriter-medium-i-normal-sans-0-0-0-0-m-0-iso8859-9 LucidaTypewriterBold=2Ettf -b&h-lucidatypewriter-bold-r-normal-sans-0-0-0-0-m-0-iso8859-9 LucidaTypewriterBoldOblique=2Ettf -b&h-lucidatypewriter-bold-i-normal-sans-0-0-0-0-m-0-iso8859-9 ## Added the below line to fonts=2Edir file Pothana2000=2Ettf -b&h-Pothana2000-medium-r-normal--0-0-0-0-p-0-iso8859-1 Also increment the number in the first line of the fonts=2Edir file=2E I think this would solve your problem=2E Please respond me with the status= =2E Do let me know if you need more details=2E=20 Regards, Raghavan >Hello sir, > here are my full technical details=3D2E >Iam using "java" as front-end to develop all GUI which >forms main part of project=3D2E This GUI contains a JTable >which resembles a spreadsheet=3D2E >Back-end used is oracle9i database=3D2E >Iam working in WindowsXP Professional=3D2E >Iam using JDK1=3D2E5 >I used all Unicode fonts=3D2EBut none is working=3D2E >For example: to display "NAME" in tamil in a MenuItem >I will give unicode value >as"\u0b86\u0b67\u0b89\u0c87"=3D2E >The above expression is working perfectly for hindi >but not for other Indan languages=3D2EFor every unicode >value i given only a square box is appearing=3D2E >I written one code in java which shows all supported >Locales By JDK1=3D2E5=3D2E In the output there is only HINDI >but no other indian Languages=3D2E >But I know that we can work with user-defined Locales >in java=3D2E >So please ehelp me in finding the solution=3D2E >Thank you=3D2E -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web=2Ecom/ =2E |