Java Canvas displaying boxes for Tamil Characters

Hi
I am getting boxes when I display a tamil character on a Java Canvas from an Applet.Please let me know if any solutions.
With Best Regards
Shrinivas

Thank you
We must do a g.setFont(Latha.ttf) and also made an entry in font.properties for latha.ttf.
It works fine now.
With Best Regards
Shrinivas

Similar Messages

  • How to handle the button "cancel" in a dialog box for displaying views?

    Hello!
    I ve a question about handling the cancel button in a dialog box for displaying views.
    I ve already implemented the dialog box by using the following code:
    METHOD eh_onnewqact.
      DATA stitle TYPE string.
      IF m_popup IS BOUND.
        stitle = cl_bsp_runtime=>get_otr_text( alias = 'ZCC_ICRM/NEW_TASK' )."cl_wd_utilities=>get_otr_text_by_alias( 'ZCC_ICRM/NEW_TASK' ).
        m_popup = comp_controller->window_manager->create_popup(
          iv_interface_view_name = 'ZCC_POPUP_NEWBT/NewQActWindow'
          iv_usage_name = 'CUNewQAct'
          iv_title = stitle
        CALL METHOD m_popup->set_on_close_event
          EXPORTING
            iv_view       = me
            iv_event_name = 'NEWQACT_POPUP_CLOSED'.
      ENDIF.
      m_popup->open( ).
    ENDMETHOD.
    My dialog box consists two buttons - cancel and create.
    The cancel buttons should close the popup and the create button should create an entity of a specified object. but let us come to the cancel button. I did´nt find any information about implementing an cancel button. So, how should I implement it? I thougt
    me->close( ). But that didnt works!
    Could u give me further information about that, because my cancel event-handler is empty?
    method EH_ONCANCEL_QACT.
    endmethod.
    After that I would know how my calling view could know that the user pushes the Create Button and how the data of 2 inputfields of the dialog box finds their way to the calling view in order to process this data there?
    Thank you very much!

    Hi Michael,
    thank you for your advice! This problem is solved...
    ...but I have another issue. Ive implemented 2 editable fields in my popup. The user should fill that fields with context and that context should be processed in the calling view of my popup.
    My question is how to transfer these information from my popup to my calling view or method?
    I tried the following...
          lv_context_node ?= m_popup->get_context_node( 'QUICKACT' ).
          IF lv_context_node IS NOT INITIAL.
            lv_text = lv_context_node->get_date( attribute_path = '' ).
          ENDIF.
    But it doesnt work! The context node object is always empty/initial.
    Thank you!
    PS: Another possibility could be that the object / node of the calling view is transferred to the pop-up in order to process it there.
    Edited by: Marcus Findeisen on Feb 22, 2011 12:13 PM

  • When i have a ticked box for Java script i'm still not able to acess things on the i player. Why is this?

    I have tried to load Java Script so that i can watch things on the BBC i player. I have followed the instructions for loading Java Script as told on the BBC i player i.e i have a ticked box for Java Script but i still can't watch things on the i player. I seem to be doing something wrong, but not sure what it is!

    What error are you getting when you try ? If you are getting a network timeout then try temporarily turning off your firewall and antivirus software until the download has completed. Or you could downloading the update via a browser : https://discussions.apple.com/message/16436025#16436025

  • Finding a replacement box for 20" cinema display.

    Anybody know how to find a replacement box for a 23" cinema display. I can't find one anywhere.
    Thanks
    Paul

    Try ebay.

  • Need box for 30" display

    I am moving and need to get hold of a Apple 30" Display box. If you have one you would like to sell to me, please let me know.
    Thanks
    David

    Yeah, I hold onto all my boxes. They look great around the house, for a couple weeks, but then they start to pile up. I still love them though.

  • Shipping boxes for 23" cinema displays

    I am in the process of moving, but discarded the original boxes which my 23" cinema displays were shipped in, and was wondering where one be able to find shipping boxes for these displays. I've checked with the local Apple store, and AppleCare, without much luck.
    If there is anyone who would be willing to part with these boxes for a reasonable amount, please let me know.

    Try posting an ad in the MacNN marketplace if you haven't already; boxes for Apple products sometimes appear for sale there.
    (13559)

  • ? is shown for Norwegian characters when XML document is parsed using DOM

    Hi,
    I've a sample program that creates a XML document with a single element book having Norwegian characters. Encoding is UTF-8. When i parse the XML document and try to access the value of that element then ? are shown for Norwegian characters. XML document file name is "Sample.xml"
                DocumentBuilderFactory dbfac = DocumentBuilderFactory.newInstance();
                DocumentBuilder docBuilder = dbfac.newDocumentBuilder();
                Document doc = docBuilder.newDocument();
                Element root = doc.createElement("root");
                root.setAttribute("value", "Á á Ą ą ä É é Ę");
                doc.appendChild(root);
                TransformerFactory transfac = TransformerFactory.newInstance();
                Transformer trans = transfac.newTransformer();
                trans.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, "yes");
                trans.setOutputProperty(OutputKeys.INDENT, "yes");
                trans.setOutputProperty(OutputKeys.ENCODING, "UTF-8");
                //create string from xml tree
                java.io.ByteArrayOutputStream baos = new java.io.ByteArrayOutputStream();
                StreamResult result = new StreamResult(baos);
                DOMSource source = new DOMSource(doc);
                trans.transform(source, result);
                writeToFile("Sample.xml", baos.toByteArray());
                InputSource is = new InputSource(new java.io.ByteArrayInputStream(readFile("Sample.xml")));
                is.setEncoding("UTF-8");
                DocumentBuilder obj_db = DocumentBuilderFactory.newInstance().newDocumentBuilder();
                Document obj_doc = obj_db.parse(is);
                obj_doc.normalize();
                System.out.println("Value is : " + new String(((Element) obj_doc.getElementsByTagName("root").item(0)).getAttribute("value").getBytes()));writeFile() - Writes the document bytes in Sample.xml file
    readFile() - Reads the Sample.xml file
    When i run this program XML editor shows the characters correctly but Java code output is: Á á ? ? ä É é ?
    What's the problematic area in my java code. I didn't get any help from any source. Please suggest me the solution of this problem.
    Thanx in advance.

    Hi,
    I'm using JBuilder 2005 and i mentioned encoding UTF-8 for saving Java source files and also for compilation. I've modified my source code also. But the problem persists. After applying changing the dumped sample.xml file doesn't display these characters correctly in IE, but earlier it was displaying it correctly at IE.
    Modified code is:
    DocumentBuilderFactory dbfac = DocumentBuilderFactory.newInstance();
                DocumentBuilder docBuilder = dbfac.newDocumentBuilder();
                Document doc = docBuilder.newDocument();
                Element root = doc.createElement("root");
                root.setAttribute("value", "Á á Ą ą ä É é Ę");
                doc.appendChild(root);
                OutputFormat output = new OutputFormat(doc, "UTF-8", true);
                java.io.ByteArrayOutputStream baos = new java.io.ByteArrayOutputStream();
                OutputStreamWriter osw = new OutputStreamWriter(baos, "UTF-8");
                XMLSerializer s = new XMLSerializer(osw, output);
                s.asDOMSerializer();
                s.serialize(doc);
                writeToFile("Sample5.xml", baos.toByteArray());
                InputSource o = new InputSource(new java.io.ByteArrayInputStream(readFile("Sample5.xml")));
                o.setEncoding("UTF-8");
                com.sun.org.apache.xerces.internal.parsers.DOMParser obj_parser = new com.sun.org.apache.xerces.internal.parsers.DOMParser();
                obj_parser.parse(o);
                Document obj_doc = obj_parser.getDocument();
                System.out.println("Value : " + new String(((Element) obj_doc.getElementsByTagName("root").item(0)).getAttribute("value").getBytes()));I'm hanged on this issue. Can u please provide me the code snippet that works with these characters or suggest solution.
    Thanx

  • [SOLVED] urxvt doesn't display correctly some special characters

    Hello everyone,
    I have a weird issue with urxvt. For some reason it doesn't display correctly some special character.
    Here is a comparison between xfce4-terminal and rxvt-unicode  (I used theses characters as exemple):
    xfce4-terminal :
    urxvt :
    And here is my .XDefaults file (without the color and the plugin part, since it's unrelevant):
    !Font
    URxvt.font: xft:PragmataPro:pixelsize=11:antialias=false
    !General
    URxvt.scrollBar: false
    URxvt*imLocale: fr_CH.UTF-8
    URxvt.saveLines: 5000
    URxvt.geometry: 95x26+50+50
    Has someone an idea what the problem could be?
    Thank's in advance.
    Last edited by mwm (2013-11-13 13:15:48)

    This is what I think is happpening.
    PragmataPro may not contain those glyphs.  It appears to have a wide array of glyphs but it is not unicode complete.
    Xfce-terminal is a vte terminal.  When a glyph cannot be found in the desired font, it will find the glyph in the 'closest' font.  Urxvt will only use the glyphs in the font or fonts specified.  If PragmataPro does not contain the glyphs, urxvt will display boxes.
    You can give urxvt a series of fonts to search. It will search for a glyph through the listed fonts in the order you specify.  Here's an example from my urxvt configs:
    urxvt*font: xft:DejaVu Sans Mono:style=Book:antialias=false:size=8, \
    xft:WenQuanYi Bitmap Song:size=8, \
    xft:FreeSerif:style=Regular, \
    xft:unifont:style=Medium:antialias=false
    I couldn't use FreeSerif or unifont as a main font, but for an occasional glyph, it works for me.  This file, http://www.cl.cam.ac.uk/~mgk25/ucs/exam … 8-demo.txt, can be displayed in urxvt correctly, with only a few unknow glyphs showing as boxes in the Amharic section.

  • Arial Unicode font for Tamil, etc.?

    Looking for some style alternatives to the InaiMathi font included in OS X for the Tamil language, I noted at the the Gallery of Unicode Fonts that the Arial Unicode font includes Tamil characters, and remembered that that font is now included with OS X (10.5). I checked with Character Palette and indeed the Tamil characters are there, but they aren't recognized as equivalent to those in InaiMathi. And when I try to change some Tamil words in a document from InaiMathi to Arial Unicode, nothing happens.
    I don't understand a lot about Unicode, but I know the Arial Unicode font has been around for a while (it was more or less the original effort to create a single Unicode font including all the major alphabetic scripts), and don't understand why it would contain the Tamil character set but not work for that script. It doesn't seem to work for Tibetan either, though it contains that character set as well. In fact, according to Character Palette, it seems about 90% of Arial Unicode is "character variants" that "won't display correctly". What's it for, then, anyone have any idea?

    +I have always thought Windows fonts cannot be used for display. Could you describe how you use Character Palette to do that?+
    Well, not "display" in the sense of opening a file using an OpenType font on the Mac and seeing it display properly. What I do in Character Palette with an OpenType font like Sanskrit2003 is scroll through the font to find the elements I want and double-click them to enter them in a document. Of course this workaround is feasible only for the occasional word, not for whole sentences or paragraphs. I'm not a big time user of any of this, so I can manage for the occasional word I want.
    +The reason they do this is because a lot of documents and web pages could specify Arial in them and users would get the idea that OS X does not support Devanagari, Tamil, Tibetan, etc unless they switch the font, which is impossible in Safari.+
    Yeah, I can see the reason; but wouldn't it be easier in the long run to just enable OpenType fonts so everyone can use the same fonts? And it is annoying that you can't specify fonts in Safari like in Camino.
    +I agree, but have doubts this will happen soon. Perhaps more likely is an app like Mellel which does OpenType could be expanded to cover these scripts.+
    Several years ago the developer of Mellel assured me that v.2 would support Indic scripts. But it never happened.
    +In the meantime, OpenOffice/X11 does work for display I think.+
    Yes, OpenType fonts can be used in OpenOffice/X11 (which is no longer being developed, BTW, now that there's a native OS X version). But not AAT fonts.
    +This might interest you:+
    http://discussions.apple.com/thread.jspa?threadID=1577715&tstart=0
    Indeed, though much of it is over my head. I just want to be able to use the same fonts for Indic languages as everyone else, just as I can in Chinese, etc.

  • Urxvt can't display certain Unicode arrow characters

    For some of the arrow characters in Unicode, specifically the codepoints 2900 to 2AFF, urxvt shows slim boxes, but for other characters it works.
    I am using a font that supports the glyphs, gnu unifont from the bdf-unifont package.
    Here is my .Xresources and Urxvt compile options
    *background: #002b36
    *color0: #073642
    *color1: #dc322f
    *color10: #586e75
    *color11: #657b83
    *color12: #839496
    *color13: #6c71c4
    *color14: #93a1a1
    *color15: #fdf6e3
    *color2: #859900
    *color3: #b58900
    *color4: #268bd2
    *color5: #d33682
    *color6: #2aa198
    *color7: #eee8d5
    *color8: #002b36
    *color9: #cb4b16
    *cursorColor: #93a1a1
    *fadeColor: #000000
    *fading: 20
    *foreground: #93a1a1
    *pointerColorBackground: #586e75
    *pointerColorForeground: #93a1a1
    URxvt*boldFont: -*-Unifont-*-*-*-*-*-*-100-100-*-*-*-1
    URxvt*boldItalicFont: -*-Unifont-*-*-*-*-*-*-100-100-*-*-*-1
    URxvt*borderLess: false
    URxvt*buffered: true
    URxvt*cursorBlink: true
    URxvt*font: -*-Unifont-*-*-*-*-*-*-100-100-*-*-*-1
    URxvt*hold: false
    URxvt*intensityStyles: false
    URxvt*iso14755: false
    URxvt*iso14755_52: false
    URxvt*italicFont: -*-Unifont-*-*-*-*-*-*-100-100-*-*-*-1
    URxvt*letterSpace: 1
    URxvt*mapAlert: true
    URxvt*mouseWheelScrollPage: true
    URxvt*perl-ext:
    URxvt*perl-ext-common: default,matcher,selection-to-clipboard,theme-switch
    URxvt*print-pipe: cat > $HOME/$(echo urxvt.dump.$(date +'%Y%M%d%H%m%S'))
    URxvt*saveLines: 0
    URxvt*scrollBar: false
    URxvt*scrollBar_floating: false
    URxvt*scrollBar_right: false
    URxvt*scrollTtyOutput: true
    URxvt*scrollWithBuffer: true
    URxvt*scrollstyle: plain
    URxvt*secondaryScreen: true
    URxvt*secondaryScroll: true
    URxvt*urgentOnBell: false
    URxvt*url-launcher: /usr/bin/firefox
    URxvt*utmpInhibit: false
    URxvt*visualBell: false
    Xft.antialias: 1
    Xft.autohint: 0
    Xft.dpi: 107
    Xft.hinting: 1
    Xft.hintstyle: hintfull
    Xft.lcdfilter: lcddefault
    Xft.rgba: rgb
    rxvt-unicode (urxvt) v9.21 - released: 2014-12-31
    options:perl,xft,styles,combining,blink,iso14755,unicode3,encodings=eu+vn+jp+jpext+kr+zh+zhext,fade,transparent,tint,pixbuf,XIM,frills,selectionscrolling,wheel,slipwheel,cursorBlink,pointerBlank,scrollbars=plain+rxvt+NeXT+xterm
    Anyone have any idea what's going on?

    I can confirm the odd character display. Xterm will display the problem Unifont characters, but there are column alignment problems at all but a few point sizes.  Many of the glyphs require two columns, but I don't know what difficulties that presents for font designers or terminal emulator programmers.
    Very few monospace fonts include these seldom used arrow symbols. If you truly need the arrows, you might try Everson Mono or Code2000 from the AUR. They include some of the glyphs in the problem range.

  • Canvas displays stills zoomed in

    Browser - stills appear correctly sized in thumbnails,
    Timeline - thumbnails appear sized correctly
    Viewer - double click on thumbnail in timeline and canvas displays correctly sized still
    Canvas - still is zoomed in no matter what size I choose in the dropdown list.
    What size will I get when the movie is generated?
    Rich

    you might want to read up in the manual a bit to help orient yourself to what it is you are looking at.
    If your still is high-res, it won't necesarily scale to your frame size, and so it might appear "zoomed in". However, when you open the still from the timeline back into the viewer, it should appear within a frame that matches your sequence.
    I usually keep my canvas and viewer set to "fit to window" (shift-Z), or 100%. If you see scrollbars in the canvas you aren't seeing the whole frame, and realtime playback capability can be limited.
    Activate one of the wireframe modes in the canvas and select the clip in the timeline. Can you see the whole bounding box and corner handles on the still? If not, zoom out the canvas (apple -) until you can. Grab the corner and resize your still to fit your frame. Unlike Photoshop, or any other program I have ever used, proportions are constrained by default, and holding shift will disable constrained proportions.
    a little FCP 101 just for you...
    Max Average

  • SQL Developer - displaying double byte (Japanese) characters

    I have installed SQL Developer on an English Windows XP system with Asian regional support installed.
    SQL Developer > preferences > database > set language, territory to Japan/Japanese.
    The strings are displaying as square boxes which means the characters are unable to display, I have verified on a Japanese machine that the characters to display with the same version of SQL Developer.
    Any ideas on how to get these characters to display?

    Hi user625396,
    Square boxes mean font not installed, for example on my Linux box for displaying Chinese:
    Chinese characters in linux see http://isis.poly.edu/~qiming/chinese-debian-mini-howto.html basically:
    1. create a jre/lib/fonts/fallback directory if necessary and
    2. copy or link the fonts files into this directory. (On my Linux system: /usr/share/fonts/truetype/arphic/gbsn00lp.ttf )
    3. I will install Japanese when the business need arises.
    Please confirm this fallback directory works for Japanese and Windows XP, with / changed to \ and the path to a Japanese font replacing /usr/share/fonts/truetype/arphic/gbsn00lp.ttf .
    I had a quick look for a windows XP/Japanese/fallback font page but I could not see one.
    -Turloch

  • Modify DB Values with Java before displaying

    I have a table that displays an Application Name. When the data was populated the names were in all caps. For displaying purposes I wish to display them with First Letter Capitals.
    I tried to "hook in" with Entity Object accessors and View Object Accessors but the tables were still populated with ALL CAPS names.
    Where can I hook in to get my desired effect? (Yes I am aware I can use SQL manipulation, but I wish to use Java)
    Thank you,
    Brian
    Message was edited by:
    Brian Lunardini

    Thanks for the reply Steve.
    I always knew I could use SQL (didn't know initcap() existed ;) ), but I was thinking to myself "how can I do advanced modifications using java" and I didn't know where I would hook into the Java code so I guesses EntityImpl, and I thought I tried ViewRowImpl, so I opened the thread.
    Also, the View Object has read only and updateable always attributes, but the initcapped name is read only so using SQL is probably a better solution in this case speed wise.
    However, the Application names do have slashes and other characters too. I just didn't use a String.split(...) and piece it back together, I had to add some logic for extra characters. I'll look into initcap though, always good to know.
    Thanks for the information!
    Brian

  • Add List box for one field in ALV GRID

    Hi All,
      I need to add drop down list box for one field in ALV Grid.
      If any body knows, please help.
    Thanks in advance.
    Regards
    Manglesh

    Hi,
    Here is the ex where i have used for date parameter in the sel screen
    type-pools: vrm.
    data: name type vrm_id,
          list type vrm_values,
          value like line of list.
    parameters :    p_date like p_date2
                                  as listbox visible length 15.
    at selection-screen output.
      name = 'P_DATE'.
      value-key = '1'.
      value-text = 'Today'.
      append value to list.
      value-key = '2'.
      value-text = 'Last 7 days'.
      append value to list.
      value-key = '3'.
      value-text = 'Last 30 days'.
      append value to list.
      value-key = '4'.
      value-text = 'Last 90 days'.
      append value to list.
      value-key = '5'.
      value-text = 'Last year'.
      append value to list.
    Call the ''VRM_SET_VALUES' to display the values in Listbox
      call function 'VRM_SET_VALUES'
        exporting
          id     = name
          values = list.
    at selection-screen.
      if sy-ucomm = 'CLI1'.
        sscrfields-ucomm = 'ONLI'(001).
      endif.
      if p_date = '1'.
        p_date11 =  sy-datum .
      elseif p_date = '2'.
        p_date11 = ( sy-datum - 7 ).
      elseif p_date = '3'.
        p_date11 = ( sy-datum - 30 ).
      elseif p_date = '4'.
        p_date11 = ( sy-datum - 90 ).
      elseif p_date = '5'.
        p_date11 = ( sy-datum - 365 ).
      endif.
    Hope this helps u..
    Please reward points if useful.
    Regards,
    Sreenivas

  • Clearing the displayed value for a SELECT-OPTION

    How do I clear the displayed value of a SELECT-OPTION? 
    I have 2 SELECT-OPTIONs on my screen (standard basic report program screen).  I use code like this to populate the drop-down boxes for each one. 
    =====
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_prgrp-low.
      PERFORM fill_prgrp_values.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_prctr-low.
      PERFORM fill_prctr_values.
    =====
    The value the user picks for the first SELECT-OPTION will affect what values I put in the drop-down list for the second SELECT-OPTION. 
    If a user enters a value for the second SELECT-OPTION, and then goes back and changes the value of the first SELECT-OPTION, then I want to do two things:
    1.  Create a new set of values for the drop-down list for the second SELECT-OPTION (no problem; working fine);
    2.  Clear the displayed value from the second SELECT-OPTION that the user entered previously.  That value became invalid when the user picked a new value for the first SELECT-OPTION. 
    How do I clear that second displayed value? 
    I have tried CLEAR and REFRESH for the second variable using the formats s_prctr, s_prctr[], and s_prctr-low.  They will erase the values of the internal table or part(s) of it, but the displayed value stays on the screen. 
    I need to clear out the displayed value so the user will either leave it blank or enter or select a new value. 
    I am using F4IF_INT_TABLE_VALUE_REQUEST to build the drop-down lists, and it works fine, but I do not see any function module to clear the displayed value off the screen. 
    Thanks for your help.

    Sorry, but calling DYNP_VALUES_UPDATE did not work.  This is how I coded it. 
    fld_reset_rcd-fieldname  = 'S_PRCTR'.
      fld_reset_rcd-stepl      = sy-stepl.
      CLEAR fld_reset_rcd-fieldvalue.      "  re-initialize s_prctr
      CLEAR fld_reset_rcd-fieldinp.        "  what goes in here?
      APPEND fld_reset_rcd TO fld_reset_tbl.
      CALL FUNCTION 'DYNP_VALUES_UPDATE'
        EXPORTING
          dyname = 'ZFI_GL_BALANCE_NGL'
          dynumb = '1000'
        TABLES
          dynpfields = fld_reset_tbl
    <Added code tags>
    I have discovered that CLEAR and REFRESH of s_prctr will clear it somewhat.  If I enter multiple values, ranges, etc., they will all be cleared, EXCEPT for the one single value that is displayed on the main screen.  It is not cleared and it remains if you push the button to display the pop-up to enter ranges, etc. 
    To devrath.sampat  --  Thanks for your example for building the drop-down list, but that is not the problem I am having.  I am already able to build it just fine. 
    To repeat my problem, if I: 
    1.  first enter / select a value for the first SELECT-OPTION s_prgrp
    2.  then enter / select a value for the second SELECT-OPTION s_prctr
    3.  And finally go back and select a new value of the first SELECT-OPTION s_prgrp from its drop-down list,
         when I do, the program needs to clear the value displayed on the main screen for the second SELECT-OPTION s_prctr (any additional values, ranges, etc., are cleared by CLEAR and REFRESH, if I go look; but not the value shown on the main screen).
    Edited by: Scott Crosby on Feb 14, 2012 4:20 PM
    Edited by: Suhas Saha on Feb 15, 2012 12:03 PM

Maybe you are looking for