> On Nov 29, 2016, at 3:58 PM, Rick Mann <rm...@latencyzero.com> wrote: > > >> On Nov 29, 2016, at 09:38 , Doug Hill <cocoa...@breaqz.com> wrote: >> >> Wow, it's awesome that this works! And now that I know how to set these >> attributes for a UILabel, I might try using some other features of SF font, >> such as contextual fractional forms for any fraction. > > Oh, wow, contextual fractional forms! This is *perfect* for the app I'm > working on currently. > > I'm late to this thread. Does this stuff only work for attributed strings?
I believe you can use [UIFont fontWithDescriptor:size] with a non-attributed string but if you want to mix font styles in a single string, then you need attributed. > Do I apply the alternate form attribute to the string "99/100" in order to > get the fractional form? It would appear that you need to apply this style to a character sequence of: a multi-digit number followed by a ‘/‘ then another multi-digit number. Good luck! Doug _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com