×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Sep 2011
    Posts
    9

    Question Hindi font display through LWUIT

    I created Hindi font resource (Mangal face) through LWUIT.

    I have developed a small application which displays Hindi font on two components, Label and Text area. (Both components are LWUIT components)

    It displays properly in Text Area but not in Label.
    It displays as letters separate and Matras separate, not as combined. (ex: क + । = का ).

    Please give suggestions to my problem. Thanks in advance.

  2. #2
    Nokia Developer Expert
    Join Date
    Aug 2011
    Posts
    555

    Re: Hindi font display through LWUIT

    Hi sreeNarayana,

    There is a known issue regarding fonts generated by LWUIT's Resource Editor, for Hindi and Arabic characters. At this point, it is not clear whether this is an incompatibility between the Resource Editor and Nokia phones or whether this affects a larger number of devices and vendors. It seems that some characters generated by LWUIT's resource editor are not properly displayed neither on the device's screen nor the emulator. If you try to display the same characters in LWUIT's native Label or TextArea components, those are properly displayed.

    On top of that, some other Hindi characters cannot be displayed in a LWUIT Label, or in a LWUIT Text Area (that is without using the Resource Editor). For example, the character प़ is not properly displayed on Nokia's SDK 1.0 for Java Emulator.

    I would suggest using LCDUI UI components in your case.
    Last edited by skalogir; 2011-12-14 at 09:20.

  3. #3
    Registered User
    Join Date
    Dec 2011
    Posts
    11

    Re: Hindi font display through LWUIT

    In general, one has to write font rendering engine for these complex scripts. Languages like Hindi has many complexities in terms of rendering matras, conjuncts, glyphs etc. Also some characters have to be rendered as half characters when followed by "halant". I had written my own font engine to take of all these cases when working on canvas based programming. Not sure about LWUIT. Are you able to see characters like क्ष त्र etc?

  4. #4
    Registered User
    Join Date
    Sep 2011
    Posts
    9

    Re: Hindi font display through LWUIT

    hi skalogir,

    Thanks for your help and suggestion. I added " Label.setFocusable(true); ". to one component(Label or Text area). In my application Form has more than one label and text area. After executing in emulator, When I change the focus from one component to another component, the highleted or focused component displays properly, other components doesn't display properly.

    So problem may not be with either label or text area but some where else in rendering. Please can you give any suggesstion on this?


    hi smartPhoneEra,

    I didn't write any rendering engine. I can able to display all characters properly. But when I try to write words it is not able to combine letters with matras properly.

  5. #5
    Nokia Developer Expert
    Join Date
    Aug 2011
    Posts
    555

    Re: Hindi font display through LWUIT

    This is not a code issue, that can be fixed with setting a component as focusable. Although setting the label as a focusable component, can fix your problem, this is just a hack, not a solution and the issue still remains that the label should have been able to show your text in the first place (i.e. without being focusable). Using LWUIT/Resource Editor with non-Latin characters can result in a very unpredictable behavior. The combination of this external library with non-Latin characters is known to cause display problems on both the device and the emulator. You can try to use this hack, if that solves your problems, but given that LWUIT is not fully tested with non-Latin input on Nokia Devices, it is unclear what else and when can go wrong in your application. That is why I strongly suggest using the LCDUI components in your case.

Similar Threads

  1. Display Hindi font on mobile widgets
    By tarun.WRT in forum Symbian Web Runtime
    Replies: 3
    Last Post: 2011-12-13, 08:46
  2. Hindi font in series 60 2nd Editon FP3 sdk
    By Sohil in forum Symbian C++
    Replies: 27
    Last Post: 2011-08-10, 11:02
  3. Gujaratri font using LWUIT
    By pkshekhda.123 in forum Mobile Java General
    Replies: 4
    Last Post: 2010-08-12, 12:10
  4. Need hindi font for N95 8GB
    By aamitgupta in forum Symbian C++
    Replies: 1
    Last Post: 2009-01-08, 16:39
  5. Hindi font display
    By parikshitsheetal in forum Series 40 & S60 Platform Feedback Archive
    Replies: 2
    Last Post: 2008-12-08, 18:03

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •