• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Fwd: Unable to set bold font in Chinese language
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Unable to set bold font in Chinese language (From: "parag vibhute" <email@hidden>)

  • Prev by Date: Re: WebView vs. Safari
  • Next by Date: Unable to set bold font in Chinese language
  • Previous by thread: Unable to set bold font in Chinese language
  • Next by thread: Re: Unable to set bold font in Chinese language
  • Index(es):
    • Date
    • Thread