Re: Locale based font
Re: Locale based font
- Subject: Re: Locale based font
- From: Ricky Sharp <email@hidden>
- Date: Mon, 23 Nov 2009 07:50:06 -0600
I am about to play around with something similar. In my iPhone app, I
have some calls with boldSystemFontOfSize. But, for certain locales,
it should be a plain font and the size may need to be tweaked.
I then had an idea to write a static method to obtain a font style and
size based on locale. My thought was to come up with a key for each
"style" and then have a localized property list file to store the
styles for each locale.
Kinda like how you often have a CSS file for each locale your web site
is localized to.
Sent from my iPhone
On Nov 23, 2009, at 7:00 AM, Symadept <email@hidden> wrote:
Hi,
I found out the way to show custom font.
1. First give information in info.plist, under the identifier,
Application
fonts resource path.
2. Add this file into the Resources folder.
3. Invoke using this method. [NSFont fontWithName:CP_FONT_NAME size:
11],
NSFontAttributeName,
Works fine. But what I want is to use this font file only in english
locale
and in other locales it should fallback to the system fonts of the
corresponding controls.
Any pointers highly appreciable.
Regards
Mustafa
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden