Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Highlighted
Developer
Posts: 950
Registered: ‎06-22-2010
My Device: 9550
Accepted Solution

Issue using Punjabi Fonts

Hello Guys,

I am starting a application for using Punjabi Language.

 

I have no Idea about that.

Can anybody explain me that how can i use this.

and what type of fonts we can use with RIM APIs.

Thanks.

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Issue using Punjabi Fonts

Have a look at this Thread:

http://supportforums.blackberry.com/t5/Java-Development/Font-Loader-Manager-Utility/m-p/592647#M1223...

 

Basic requirements are that the font beTrueType and smaller than the maximum size.  Review the sample code in the app and associated API documentation for more.

 

Only possible on OS 5.0 and above.  Don't even try to do anything on any older OS. 

 

Good luck. 

Developer
Posts: 950
Registered: ‎06-22-2010
My Device: 9550

Re: Issue using Punjabi Fonts

Thanks Peter,

 

I will try this, And then Back if i have any Issue.

 

Thanks

 

Developer
Posts: 950
Registered: ‎06-22-2010
My Device: 9550

Re: Issue using Punjabi Fonts

Thanks Peter for your Help, But I have an Issue,

Plz clear.

I tried your Applicaton, But After the Punjabi.TTF file Selection.

Nothing happned,

After the Font file Selection, I want that When I type anything then it should be type in punjabi.

 

Plz clear me, If i am mistaking somthing.

 

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Issue using Punjabi Fonts

"... Nothing happened,"

Did the font you added appear in the list of fonts that the program displays?  I am assuming it did.  If not the program should have given you an error.  If it does not display and you don't get an error, can you attach the font to this Thread so I can test it?

 

Assuming the addition of the font did work, then ...

 

"I want that When I type anything then it should be type in Punjabi"

 

I'm not sure what you mean by this, but then I don't know Punjabi.  But if you wanted to change an input field to, say, italics, then you do that by changing the the font used by the Field.  I would have thought the same thing applied here.

Developer
Posts: 950
Registered: ‎06-22-2010
My Device: 9550

Re: Issue using Punjabi Fonts

Yes Peter, that Font file we attached, it displayed in the program well.

 

No error are there.

Yes I am attaching the font file. plz have a look.

 

Thanks.

 

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Issue using Punjabi Fonts

[ Edited ]

I have just tried that font, and it seems to work OK, it installs fine (I must admit I renamed it to remove the underscore, just to be sure there was no problems with the file name).  The font is added to the system, and the font is used to display the on the list that the program gives you.  So I think you need to resolve the issues I mentioned in the second part of my last post:

 

I said:

"I'm not sure what you mean by this, but then I don't know Punjabi.  But if you wanted to change an input field to, say, italics, then you do that by changing the the font used by the Field.  I would have thought the same thing applied here."

 

You know it is possible to change a Field to use this Font, because the program already does it (see refreshList()), for a LabelField.  You just need to do it for an input field.

 

You can possibly also set Punjabi and the System font - go into Options, Screen/keyboard and give it a go! 

 

Having said that, I'm not sure how you will associated Latin type keys with the Punjabi letters!

 

OK?

Developer
Posts: 950
Registered: ‎06-22-2010
My Device: 9550

Re: Issue using Punjabi Fonts

Ok Peter, I will try which you said.

 

Thanks.

Developer
Posts: 950
Registered: ‎06-22-2010
My Device: 9550

Re: Issue using Punjabi Fonts

Thanks Peter, It's Working nicely.

But when I go to option-->Screen/keyboard and chnge Font here.

then it changed the whole Blackberry Mobile font.

I want to change only my Applicaton font.

And I am trying for it.

I will be ping you if you don't mind. If i will not get success for this.

But first I will try myself.

 

Thanks.

 

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Issue using Punjabi Fonts

It pays to review the API.

 

Font.setDefaultFont(...)