Re: Vertically Centered Colon
Re: Vertically Centered Colon
- Subject: Re: Vertically Centered Colon
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Mon, 28 Nov 2016 23:18:52 +0700
> On 28 Nov 2016, at 22:13, Eric E. Dolecki <email@hidden> wrote:
>
> You could probably use an attributed string and add an attribute for the last colon: NSBaselineOffsetAttributeName
Yes; but this would be some rather desperate work-around.
I was rather thinking of UIFontDescriptorFeatureSettingsAttribute with some Feature type from SFNTLayoutTypes.h (in CoreText).
I tried a few types, but no success so far.
>
> On Mon, Nov 28, 2016 at 10:02 AM Gerriet M. Denkmann <email@hidden> wrote:
> iOS 10.1.1
>
> WWDC 2015,Session 804: Introducing the New System Fonts tells (at about 23:23) about Vertically Centered Colons.
> But I do not understand, how to turn this on.
>
> It works automatically (in SF) with colons surrounded by digits.
>
> But in my case I have “21:37:44” where ““21:37” is bold and “:44” is thin. And the ‘:’ in front of “44” is not surrounded by digits. So I want to turn this feature on explicitly.
>
> How to do this?
>
> Gerriet.
_______________________________________________
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