Unable to set bold font in Chinese language
Unable to set bold font in Chinese language
- Subject: Unable to set bold font in Chinese language
- From: "parag vibhute" <email@hidden>
- Date: Tue, 4 Dec 2007 18:53:32 +0530
I am implementing application which support chinese & english localization.
NSFont *stringFont = [NSFont boldSystemFontOfSize:12];
NSDictionary *stringAttributes = [NSDictionary
dictionaryWithObject:stringFont forKey:NSFontAttributeName];
NSAttributedString *tmpattrstring;
NSString *tmpstring = [[NSString alloc ]init];
tmpstring = [tmpstring stringByAppendingString:@" "];
tmpstring = [tmpstring
stringByAppendingString:NSLocalizedString(@"DemoText", nil)];
tmpstring = [tmpstring stringByAppendingString:@"\n\n"];
tmpattrstring = [[NSAttributedString alloc]
initWithString:majorString
attributes:stringAttributes];
Now in english, it displays "Demo Text" in bold but in Chinese it does not.
What is wrong here?
Please reply.
Thanks,
Palav
--
There are many things in your life that will catch your eye but only a few
will catch your heart....pursue those'.
_______________________________________________
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