Fwd: Unable to set bold font in Chinese language
Fwd: Unable to set bold font in Chinese language
- Subject: Fwd: Unable to set bold font in Chinese language
- From: "parag vibhute" <email@hidden>
- Date: Tue, 4 Dec 2007 18:55:21 +0530
Sorry for mentioning one wrong stringname in earlier. But still not
successful.
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:tmpstring
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'.
--
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