• 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
Re: Requesting help with setting size of text, please
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Requesting help with setting size of text, please


  • Subject: Re: Requesting help with setting size of text, please
  • From: Brian Christmas <email@hidden>
  • Date: Mon, 10 Aug 2015 17:58:32 +1000

G’day Shane

I’m only using the default font that is set for text fields in Xcode in Yosemite. They all use it on my iMac, dunno why.

I’m trying to Bold just two words in the text field, not the whole lot. My code as posted drops the size of the bolded text by at least two points within the body of the text.

I’ve also tried…

# (attributedSearchItem's convertFont:"Hiragino Kaku Gothic" toSize:13)


but can’t work out how to use it properly either. Darn translation from ObjectiveC to ASObjC is a pain, and I have never been able to find a site that shows how to do it, so I regularly have to ask for help, sorry.


why I’m asking, is it possible with the above line to set some sort of variable to convertFont: to ANY font, just in case of no match?

Regards

Santa



On 10 Aug 2015, at 5:46 pm, Shane Stanley <email@hidden> wrote:

On 10 Aug 2015, at 5:08 pm, Brian Christmas <email@hidden> wrote:

set myFont to (current application's NSFont's fontWithName:"Hiragino Kaku Gothic ProN W3" |size|:13)

Is there some reason you are using a Japanese font?

Whatever, the easiest solution is to use a bolder version, like W6 or W8.

-- 
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>
Do not post admin requests to the list. They will be ignored. applescriptobjc-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Requesting help with setting size of text, please
      • From: Shane Stanley <email@hidden>
References: 
 >Requesting help with setting size of text, please (From: Brian Christmas <email@hidden>)
 >Re: Requesting help with setting size of text, please (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: Requesting help with setting size of text, please
  • Next by Date: Re: Requesting help with setting size of text, please
  • Previous by thread: Re: Requesting help with setting size of text, please
  • Next by thread: Re: Requesting help with setting size of text, please
  • Index(es):
    • Date
    • Thread