Hindi fonts in java

i have read in books that java supports unicode and hence all the language charectors. i have the unicodes for hindi fonts. i want to write them in TextArea or JTextArea. but the problem is that when i use command append(""+<code>), i see some numbers in the textarea instead of hindi fonts. is there any way i can add hindi fonts to textArea? i am intended to use them in applet.

let me explain a bit. i want my applet to display hindi fonts when i put it online. if i use the setFont() it displays hindi fonts but the fonts MUST be present in my system ( i have hindi fonts in my system ). i want a more flexible way so that there should be no need of hindi fonts on user's system. i tried making an Font object of hindi fonts and saving it on the disk using ObjectOutputStream. but when i read it back on another system, it does not show hindi fonts. even i have tried directly supplying the unicode of hindi fonts, but nothing works. please friends help me! is there nobody to guide me?

Similar Messages

  • Hindi font are not dipalying properly in PDF

    Hello Sir/madam,
    I needs your kind assistance, I am creating a PDF using java and "iReport" tool of java. In this PDF I am fetching some "Hindi Contents" and "English Contents" from data base. These Hindi contents insert in database by using "Indic Tool" of Microsoft in "Managal Font" suppose i type "uprant" "उपरान्त" and "Abhishek" for "अभिषेक" and insert in database. But at the time of fetching PDF will generate but the Hindi contents from database in PDF shown in wrong format as shown in image. When i copy this text from PDF and paste in word document, it become shown in right format as I type, you may check by copy and past this text in word document for this you have "Mangal font" in desktop. As I suppose that there may be some issue in font in "Adobe Reader". Please suggest solution. I am using "Adobe Reader XI" for reading PDF. I shall be thankful to you.

    Hi,
    Do you have required fonts in this folder C:\Program Files\Adobe\Reader 8.0\Resource\Font to display hindi fonts properly in pdf
    Check these links for more info
    http://social.msdn.microsoft.com/Forums/en-US/sqlreportingservices/thread/f0653ac7-2670-4c3d-b2d8-e3a601651983
    http://social.msdn.microsoft.com/Forums/en-US/sqlreportingservices/thread/eb867e23-726a-4dd5-b522-c69e562d6dc6/
    I hope it is helpful for you
    Rajesh Jonnalagadda http://www.ggktech.com

  • Code to display  hindi fonts in JComboBox in a JFrame

    Hi friends,
    My mail id is [email protected] and please give response as soon as possible.
    My problem:In java,my Jcombobox contents is displaying only english fonts like arial or verdena or timesnewroman
    My requirement:
    I want source code or logic to display the contents in a JComboBox with hindi fonts or any other international language.
    That means,by choosing the language font my Jcombobox contents should be changed to that corresponding language dynamically.
    Note: I have used java internationalization with locale classes,but it is not working. please help me

    You might try giving the file a ".txt" extension. Then drag it on top of your Safari icon in the dock, which should open it with Safari. Then, under "View", select a Japanese "Text Encoding". My guess is that this is Shift-JIS.
    I am assuming you have not removed Japanese fonts from your system.

  • Pjc and hindi not getting java class

    I am trying to implement a java class using hindi font .I have also configured formsweb.cfg file for jar file. I have placed the jar file under java directory in form60 on application server machine . below is produced the message on java console --
    Opening http://jbpeast/forms60java/oracle/forms/pjc/TextField/HindiPJC2k.class no proxy
    java.lang.ClassNotFoundException: oracle.forms.pjc.TextField.HindiPJC2k
         at sun.applet.AppletClassLoader.loadClass(Compiled Code)
         at java.lang.ClassLoader.loadClassInternal(Compiled Code)
         at oracle.forms.handler.UICommon.instantiate(Compiled Code)
         at oracle.forms.handler.UICommon.onCreate(Unknown Source)
         at oracle.forms.handler.TextFieldItem.onCreate(Unknown Source)
         at oracle.forms.engine.Runform.onCreateHandler(Unknown Source)
         at oracle.forms.engine.Runform.processMessage(Unknown Source)
         at oracle.forms.engine.Runform.processSet(Compiled Code)
         at oracle.forms.engine.Runform.onMessageReal(Compiled Code)
         at oracle.forms.engine.Runform.onMessage(Compiled Code)
         at oracle.forms.handler.LogonDialog.actionPerformed(Unknown Source)
         at oracle.ewt.button.PushButton.processActionEvent(Unknown Source)
         at oracle.ewt.button.PushButton.processEventImpl(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Compiled Code)
         at oracle.ewt.lwAWT.LWComponent.processEvent(Compiled Code)
         at oracle.ewt.button.PushButton.activate(Unknown Source)
         at oracle.ewt.lwAWT.AbstractButton._processKeyPress(Unknown Source)
         at oracle.ewt.lwAWT.AbstractButton.processKeyEvent(Unknown Source)
         at java.awt.Component.processEvent(Compiled Code)
         at java.awt.Container.processEvent(Compiled Code)
         at oracle.ewt.lwAWT.LWComponent.processEventImpl(Compiled Code)
         at oracle.ewt.button.PushButton.processEventImpl(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Compiled Code)
         at oracle.ewt.lwAWT.LWComponent.processEvent(Compiled Code)
         at java.awt.Component.dispatchEventImpl(Compiled Code)
         at java.awt.Container.dispatchEventImpl(Compiled Code)
         at java.awt.Component.dispatchEvent(Compiled Code)
         at java.awt.LightweightDispatcher.processKeyEvent(Container.java:1574)
         at java.awt.LightweightDispatcher.dispatchEvent(Compiled Code)
         at java.awt.Container.dispatchEventImpl(Compiled Code)
         at java.awt.Window.dispatchEventImpl(Compiled Code)
         at java.awt.Component.dispatchEvent(Compiled Code)
         at java.awt.EventDispatchThread.run(Compiled Code)
    I think it is not coorectly getting either class or font .
    I have also implemented one more java class which changes bgcolor of text box ( from tutorials on otn ) it is working fine.
    Please help me.

    Hi Frank
    Thanks for response. Mt formsweb.cfg is added with an entry
    [pjc]
    archive_jini=f60all_jinit.jar,HindiPJC2k.jar
    The jar file have been made by combining all the class files.
    But the message is comming .
    I use the URL
    http://server_name/dev60cgi/ifcgi60/?config=pjc&FORM=hindi_pjc.FMX
    all other forms like modcursor.fmx, keyfilter.fmx (available on oracle technet) are behaving well but this for is giving problems.
    I have copied the jar file is 806/form60/java directory .
    Please help me.
    Prashant

  • Deprecation warning for getFontMetrics(java.awt.Font) in java.awt.Toolkit

    Hi all,
    When I use the following code
    JComponent c;
    FontMetrics metrics = getToolkit().getFontMetrics(c.getFont());
    I get this following warning during compilation:-
    warning: getFontMetrics(java.awt.Font) in java.awt.Toolkit has been deprecated
    JDK suggests to use getLineMetrics() of the Font class.
    But there's an issue with that: if I use getLineMetrics(), there is no API method that I can use to get the width of a string as opposed to FontMetrics which provides stringWidth(String str) method for that purpose. In fact all the methods in FontMetrics are not mapped into LineMetrics.
    Could anyone please help or provide me at least some pointers on how to tackle this issue so that I can get rid of the deprecated method along with the existing methods mapped to equivalent APIs? The bottomline is that I should be able to maintain the existing functinality of my application for those part of code that uses getToolkit().getFontMetrics().
    Thank you for your help in advance.
    -Sanjoy Das

    Use Graphics.getFontMetrics(font) instead.
    After creation your frame and calling frame.show();
    You can access it like that
    frame.show();
    frame.getGraphics().getFontMetrics(new Font("Arial",0,10));
    before showing graphics is null.
    Or just create a BufferedImage and ask it for graphics.
    BufferedImage img=new BufferedImage(...);
    img.getGraphics().getFontMetrics(font);
    regards
    Stas

  • How to add hindi font in smartforms

    hi friends,
    i want to add hindi fonts in smartforms,..
    please help me out and path me the way ..
    Moderator message: please search for available information.
    Edited by: Thomas Zloch on Feb 16, 2012

    Creating the Standard Text:
    Go to SO10
    1. Enter Text Name.  For example, ZABC
    2. Text ID ST
    3. Language EN
    Click on Create.
    And enter the Required Information and save.
    To include a Standard text in SmartForm.
    Follow the steps below:
    1. Create a text node in the window.
    2. Under general attributes select "Include text" as Type.
    3. Specify the fields under Text.
    Text Name ZABC
    Text Object TEXT
    Text ID ST
    Language EN.
    Hope it helps.
    Regards.

  • True Type Fonts in Java

    Hi all
    I searched through the forum and found some threads with the same problem but never a solution attached so here is my question:
    I'm currently trying to use a True Type Font in Java. I installed the font under windows and it works fine in e.g. Word, but when I try to use it in Java all I can see are "rectangles". I'm not sure if the problem lies in the font itself or if it is a problem of Java. The fonts are named "Fughetta" and "Toccata" and can be found here: http://www.efn.org/~bch/aboutfonts.html. He is a code snippet I'm using to test the font:
    public void setFonts(Graphics g)
            if (f != null) {
                return;
            f = new Font("Fughetta", Font.TRUETYPE_FONT, 26);
            System.out.println(f);
        public void paintComponent(Graphics g)
            super.paintComponent(g);
            setFonts(g);
            String s1 = "1234567890��!\"�$%&/(()=?`";
            String s2 = "qwertzuiop�+asdfghjkl��#yxcvbnm,.-<";
            String s3 = "QWERTZUIOP�*ASDFGHJKL��'YXCVBNM;:_>";
            String s4 = "1��{[]\\}@�~�|";
            g.setFont(f);
            g.drawString(s1, 10, 30);
            g.drawString(s2, 10, 70);
            g.drawString(s3, 10, 110);
            g.drawString(s4, 10, 150);
        }All help is appreciated ;)
    - marc

    Hy, Thanks for your sollution, but now I can't use this kind of approach.
    I need to show a Bar Code Font inside a JTable cell, so I created my CellRenderer, in which I tried to change the font to my "Code EAN13" True Type font.
    public Component getTableCellRendererComponent(JTable table,
                Object value, boolean isSelected, boolean hasFocus, int row, int column)  {
                 Component c = super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
                 if (column == CollectInfoTableModel.CODBAREPRODUS_INDEX ) {
                         Font barCodeFont = new Font("Arial", Font.BOLD, 36);
                         c.setFont(barCodeFont);                 
    }This doesn't work, it just prints some strange characters.
    I tried your sollution, but when I make :
    Graphics2D g2D= (Graphics)c.getGraphics();i keep getting g2D = null.
    What can I do ?
    Is there a way to obtai a valid Grapics object on which to draw the glyphVector on ?

  • Hindi fonts are not correcly shown in pdf

    Hi,
          I had created a report in RDLC(SQL Server Reporting).When I am exporting the report to pdf it does not show the report properly.Hindi fonts are not correctly displayed the spellings are not correct in the PDF.I had tried Arial Unicode but to no gain.Kindly suggest the solution
     

    Hi,
    Do you have required fonts in this folder C:\Program Files\Adobe\Reader 8.0\Resource\Font to display hindi fonts properly in pdf
    Check these links for more info
    http://social.msdn.microsoft.com/Forums/en-US/sqlreportingservices/thread/f0653ac7-2670-4c3d-b2d8-e3a601651983
    http://social.msdn.microsoft.com/Forums/en-US/sqlreportingservices/thread/eb867e23-726a-4dd5-b522-c69e562d6dc6/
    I hope it is helpful for you
    Rajesh Jonnalagadda http://www.ggktech.com

  • How can I copy and paste something which is written in hindi font in photoshop?

    I want to create an image with some text written on it. The text which is to be written is in Hindi language and I have that text in a ms word file. But I don't know Hindi typing so the only option I have is to copy and paste that text from ms-word file as it is. Now the problem is the same font is working in ms-word file properly but as I soon as I copy it to Photoshop with the same font enabled, it is showing something weird boxes. In short, Hindi font is working for ms-word but same Hindi font is not working for Photoshop particularly in case of copy and paste. Not only one font, I tried many of them but problem is the same for every font. Please help. Proper answer will be greatly appreciated.

    hatstead Thanks a lot for your quick reply, but this is not what I want! Actually when I posted the picture with Hindi font I forgot that you don't know the Hindi language. Actually in the picture I want something which is written on the right hand side to the equal sign ('='). Problem is when I copy it from ms word file or notepad file with same font enabled in the Photoshop, Photoshop automatically converts it to something which is written on the left hand side to equal sign ('='). Believe me I have done everything in last 24 hours to fix this problem but unfortunately none of the solution worked. I also used "Place" option to import the ms word file but again unfortunately Photoshop doesn't allow text files or .doc file format to be placed. So the thing is I want something which is written right hand side but when I copy it to Photoshop, Photoshop automatically converts it into something which is written on the left hand side. I hope you got the crux. Please help!!

  • Fonts in java apps for win and linux

    Hi everyone.
    i need to build an application mult-plataform, to run in windows and linux...
    but i don�t know waht font i must use...the default font that java takes doesn�t exist in linux (dialog)...
    waht font should i use in my app??
    thanx

    For going multi-platform it is easiest to stick to the logical fonts: Fonts named "Serif", "SansSerif", "Monospaced", "Dialog", and "DialogInput".
    These fonts are guaranteed to exist on any platform, although their implementations may be different. If you use others then you'll have to figure out how to deal with cross platform issues.
    Jeff

  • Problem in writing Hindi Font in properties file at run time.!

    hi,
    We are using Language translator for our project.
    We are able to convert the language in hindi and chinese language.
    Im also creating properties file respective to each page in hindi,english and chinese language.
    At run time while CREATING properties file shows the english font appropriate but while
    in hindi it shows problem at run time .
    after WRITING at run time the hindi properties file contains lots on question mark(????????????) intead of hindi font words.
    does any advise me the solution to this problem.?
    Thankx in advance.!
    Johnita

    Hi suraya,
    Since the issue regards MVC and website deployment. I suggestion you post the question in the ASP.NET forums at
    http://forums.asp.net/. It is appropriate and more experts will assist you.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Hindi fonts not rendering in html pages

    Hindi fonts not rendering in when html pages are run except the mangal and devnagri font.
    Is that a bug or a problem which i am not able to tackle.
    Mozilla browser shows error in console that (font download failed or The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range.
    downloadable font: download failed (font-family: "Kruti Dev 010" style:normal weight:normal stretch:normal src index:0): status=2147500037
    source: file:///D:/epub/filename/OEBPS/Fonts/k010.otf @ file:///D:/epub/filename/OEBPS/Styles/style.css).
    Please reply soon.
    Thanks.

    Download and install hindi font from [http://hindi-fonts.com Hindi Fonts] .

  • Printer Built-in fonts in java

    Hello,
    I'm using Imaje 2000 Series Printer, when opening a new microsoft word document I can see some built in fonts specific to that printer like Imaje Arial, Imaje Times New Roman B, etc... I found out when printing with one of these fonts, the printing process is very fast. what happens is that I can see those fonts with name Imaje in MS word with printer icon attached to them, but in java i cant see them, and to check all fonts in java i used the below code :
    Font[] f = GraphicsEnvironment.getLocalGraphicsEnvironment().getAllFonts();
    for (int i=0; i<f.length; i++) {
    System.out.println(f.getFontName());
    if i try to set the font to Imaje Arial, java will neglect that font and print on the default I guess. Is there a way to use the printer built in fonts from within my java application

    well, i cant find the font in windows fonts
    directory, but when I open MS wrod i can find the
    font (for example: Imaje Arial) in the fonts list and
    has an icon of printer which means its not a true
    type font. and please note that this font Imaje Arial
    did not appear in MS word before installing the
    printer driver.Well, if it's not installed and you can't find the file, how do you expect Java to do it?

  • Problem with hindi font cant readable

    i cant read my Hindi font . it appears in coded language, i reinstalled my Firefox but it didn't work.

    some one please help me

  • Do you have hindi fonts for InDesign CS4 and if so how much are they?

    Do you have hindi fonts for InDesign CS4 and if so how much are they?

    Adobe does offer a few Unicode fonts that support Hindi  I'd expect that you'd be asking for Devanagari fonts, though. Have you ever done any Hindi typesetting? I mean, when we typeset English we don't do it in "English fonts" but in "Latin-script fonts."
    There are two main classes of Devanagari fonts - the more common, older fonts where someone took a Latin-script font, erased the characters, and replaced them with Devanagari glyphs, versus contemporary Unicode fonts. The first class are wonky, hard to use, and quite common. If you're in-country you will find lots of ways to buy those kinds of fonts. You also can use them in InDesign without needing any scripts or plugins to turn on the World-Ready Composer. I find Unicode fonts to be much easier to use, to automatically compose according to proper rules regarding behavior of glyphs - but to use them in CS4, you'd need something like World Tools or IndicPlus. I'm a World Tools user myself but if you're going to be doing only Hindi work in CS4, I'd suggest that you look at IndicPlus first.
    In short - it's deeper than it looks. If you want to tell us more about what you're trying to do, we might be able to give you better advice.

Maybe you are looking for

  • Captions in book

    i am making a book in iphoto and deleted the placeholder text on the pages and now when i go back into those blank text boxes it won't allow me to type in new text. any suggestions? thanks.

  • 3rd Party adapter on different JVM

    Dear Experts, We want to buy a 3rd party adapter for SFTP as that is not supported in standard SAP PI, we are on SAP PI7.0. Can we install the 3rd party adapter on a separate JVM and use it in ID? The adapters we are considering are Advantco & Aedapt

  • Can i create bookmark directly into a folder?

    I want to be able to drag the URL of the page i am on directly to a folder in my bookmarks, or else right-click on a pre-existing folder in my list, and get it to add my current page to that folder. Is there any way to do this, or something similarly

  • Converted Videos dont hav sound.......

    When i have my ipod plugged in and i am in the movies menu, i go into the advanced menu and tell it to convert for ipod, it takes a while doing this and then when it has finished, i am left with a movie file with no sound but a moving picture..... Ca

  • Best router combination for FIOS and Apple TV

    I have a Power PC Mac with Verizon FIOS wired router. I would like to add Apple TV, and I am wondering if I replace my wired router with a wireless one, would that allow me to use Apple TV? If so, what router would anyone recommend as working well wi