Re: [SOLVED] How to get a condensed San Francisco UIFont?
Re: [SOLVED] How to get a condensed San Francisco UIFont?
- Subject: Re: [SOLVED] How to get a condensed San Francisco UIFont?
- From: David Hoerl <email@hidden>
- Date: Thu, 08 Oct 2015 08:14:19 -0400
On 10/7/15 7:27 PM, Jens Alfke wrote:
On Oct 7, 2015, at 4:01 PM, David Hoerl <email@hidden
<mailto:email@hidden>> wrote:
then add a "condensed" attribute:
let fd2 = fd1.fontDescriptorByAddingAttributes[ the magic sauce ]
I haven’t used this API, but from looking at the header, I would try:
let fd2 = fd1.fontDescriptorWithSymbolicTraits(.Condensed)
—Jens
Great suggestion - I just focused too hard on working with
"fontDescriptorByAddingAttributes"
If I use this:
let newDesc = desc.fontDescriptorWithSymbolicTraits([.TraitCondensed,
.TraitBold])
I get a bold font, but it's not condensed - perhaps San Francisco has no
such variant now.
Thanks!
- David
_______________________________________________
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