Re: Vertically Centered Colon

2016-12-01 Thread Doug Hill
> On Dec 1, 2016, at 11:20 AM, Alastair Houghton > wrote: > > On 1 Dec 2016, at 19:05, Doug Hill wrote: >> >> Just made another breakthrough. I finally figured out why we have the >> vertically centerd colon (I’ll now call it VCC) by default but has >> requirements of numbers on either side

Re: Vertically Centered Colon

2016-12-01 Thread Alastair Houghton
On 1 Dec 2016, at 19:05, Doug Hill wrote: > > Just made another breakthrough. I finally figured out why we have the > vertically centerd colon (I’ll now call it VCC) by default but has > requirements of numbers on either side of the colon. > The SF font setting is “Contextual Alternatives” (I’l

Re: Vertically Centered Colon

2016-12-01 Thread Doug Hill
> On Dec 1, 2016, at 8:17 AM, Doug Hill wrote: > >> On Dec 1, 2016, at 12:58 AM, Alastair Houghton >> wrote: >> >> Agreed. At the very least it needs to explicitly document the set of >> stylistic alternates for the SF font family so that we know what they all do >> (it looks like there mi

Re: Vertically Centered Colon

2016-12-01 Thread Doug Hill
> On Dec 1, 2016, at 8:07 AM, Alastair Houghton > wrote: > > On 1 Dec 2016, at 15:57, Alex Zavatone wrote: >> >> If we are able to do it right, then we don't have to worry about waiting for >> it or aren't put behind an 8 ball if Apple decides to pull the rug out from >> under us if it deci

Re: Vertically Centered Colon

2016-12-01 Thread Doug Hill
> On Dec 1, 2016, at 12:58 AM, Alastair Houghton > wrote: > > On 30 Nov 2016, at 18:33, Doug Hill > wrote: >> >> Still hoping Apple will make SF font specific features part of the SDK. > > Agreed. At the very least it needs to explicitly document the set of > st

Re: Vertically Centered Colon

2016-12-01 Thread Alastair Houghton
On 1 Dec 2016, at 15:57, Alex Zavatone wrote: > > If we are able to do it right, then we don't have to worry about waiting for > it or aren't put behind an 8 ball if Apple decides to pull the rug out from > under us if it decides to change the feature (which happens). > > With these features i

Re: Vertically Centered Colon

2016-12-01 Thread Alex Zavatone
On Dec 1, 2016, at 2:58 AM, Alastair Houghton wrote: > On 30 Nov 2016, at 18:33, Doug Hill wrote: >> >>> On Nov 29, 2016, at 11:06 PM, Alex Zavatone wrote: >>> >>> On Nov 30, 2016, at 12:10 AM, Doug Hill wrote: >>> After some trial and error, I figured out how to accomplish the San >>>

Re: Vertically Centered Colon

2016-12-01 Thread Alastair Houghton
On 30 Nov 2016, at 18:33, Doug Hill wrote: > >> On Nov 29, 2016, at 11:06 PM, Alex Zavatone wrote: >> >> On Nov 30, 2016, at 12:10 AM, Doug Hill wrote: >> >>> After some trial and error, I figured out how to accomplish the San >>> Francisco font features described below. I updated my document

Re: Vertically Centered Colon

2016-11-30 Thread Doug Hill
> On Nov 29, 2016, at 11:06 PM, Alex Zavatone wrote: > > > On Nov 30, 2016, at 12:10 AM, Doug Hill wrote: > >> After some trial and error, I figured out how to accomplish the San >> Francisco font features described below. I updated my document to include >> the code to turn on each feature.

Re: Vertically Centered Colon

2016-11-29 Thread Alex Zavatone
On Nov 30, 2016, at 12:10 AM, Doug Hill wrote: > After some trial and error, I figured out how to accomplish the San Francisco > font features described below. I updated my document to include the code to > turn on each feature. > > http://breaqz.com/font/AlternateStylisticForms.pdf > > I sho

Re: Vertically Centered Colon

2016-11-29 Thread Doug Hill
After some trial and error, I figured out how to accomplish the San Francisco font features described below. I updated my document to include the code to turn on each feature. http://breaqz.com/font/AlternateStylisticForms.pdf I should make a sample app or blog post but time doesn’t permit at

Re: Vertically Centered Colon

2016-11-29 Thread Doug Hill
> On Nov 29, 2016, at 3:58 PM, Rick Mann wrote: > > >> On Nov 29, 2016, at 09:38 , Doug Hill 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 f

Re: Vertically Centered Colon

2016-11-29 Thread Gerriet M. Denkmann
> On 30 Nov 2016, at 09:18, Doug Hill wrote: > > >> On Nov 29, 2016, at 3:58 PM, Rick Mann wrote: >> >> >>> On Nov 29, 2016, at 09:38 , Doug Hill 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 oth

Re: Vertically Centered Colon

2016-11-29 Thread Rick Mann
> On Nov 29, 2016, at 09:38 , Doug Hill 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

Re: Vertically Centered Colon

2016-11-29 Thread Doug Hill
> On Nov 29, 2016, at 10:04 AM, Quincey Morris > wrote: > > On Nov 29, 2016, at 09:38 , Doug Hill > wrote: >> >> But seriously, why didn’t Apple document what those stylistic alernative >> type attribute constants are? Are they supposed to change? Did they not kno

Re: Vertically Centered Colon

2016-11-29 Thread Quincey Morris
On Nov 29, 2016, at 09:38 , Doug Hill wrote: > > But seriously, why didn’t Apple document what those stylistic alernative type > attribute constants are? Are they supposed to change? Did they not know what > they correspond to when creating the header? Did they not expect that > developers wou

Re: Vertically Centered Colon

2016-11-29 Thread Doug Hill
> On Nov 29, 2016, at 1:33 AM, Gerriet M. Denkmann wrote: > >> On 29 Nov 2016, at 03:33, Doug Hill wrote: >> >> A little experimentation might find the right one. > > A “little” is kind of misleading. There are about 40 features, with up to 20 > alternatives each. > > … > After you kindly

Re: Vertically Centered Colon

2016-11-29 Thread Gerriet M. Denkmann
> On 29 Nov 2016, at 00:40, Quincey Morris > wrote: > > On Nov 28, 2016, at 07:01 , Gerriet M. Denkmann wrote: >> >> But in my case I have “21:37:44” where ““21:37” is bold and “:44” is thin. > > > c. Given that you work so much with non-Latin scripts, I find it surprising > that you woul

Re: Vertically Centered Colon

2016-11-29 Thread Gerriet M. Denkmann
> On 29 Nov 2016, at 03:33, Doug Hill wrote: > > A couple of things to note: > […] > In any case it's a bad idea to select the exact font since you have to choose > SF Display or Text which you don't want to do. It should be dynamically > selected at runtime based on the font size. This behav

Re: Vertically Centered Colon

2016-11-28 Thread Doug Hill
OK, after doing some tests, UILabel indeed behaves like you mentioned with the SF font. If there aren't numbers on either side of the colon, no vertical centering. My guess would see if you can attempt to set the kStylisticAlternativesType attribute, as noted below, but as previously mentioned,

Re: Vertically Centered Colon

2016-11-28 Thread Doug Hill
A couple of things to note: 1. In the SF font, colons are vertically centered by default. You can test this by creating a plain UILabel with System Font in IB and type a time e.g. 10:20, and notice the colon is vertically centered. So if you use SF font, you don't have to do anything to get the

Re: Vertically Centered Colon

2016-11-28 Thread Gerriet M. Denkmann
> On 28 Nov 2016, at 23:42, Alastair Houghton > wrote: > > On 28 Nov 2016, at 16:18, Gerriet M. Denkmann wrote: >> >> >>> On 28 Nov 2016, at 22:13, Eric E. Dolecki wrote: >>> >>> You could probably use an attributed string and add an attribute for the >>> last colon: NSBaselineOffsetAttri

Re: Vertically Centered Colon

2016-11-28 Thread Gerriet M. Denkmann
> On 29 Nov 2016, at 00:40, Quincey Morris > wrote: > > On Nov 28, 2016, at 07:01 , Gerriet M. Denkmann wrote: >> >> But in my case I have “21:37:44” where ““21:37” is bold and “:44” is thin. > > a. Are you using an attributed string whose text is “21:37:44”, or two > unattributed strings?

Re: Vertically Centered Colon

2016-11-28 Thread Alex Zavatone
I have old iOS attributed strong code that explicitly handles superscripting specific characters in an NS attributed string from the baseline by a % of the character height or by a fixed pixel amount. Let me know if you want it. Sent from my iPhone > On Nov 28, 2016, at 10:42 AM, Alastair Houg

Re: Vertically Centered Colon

2016-11-28 Thread Quincey Morris
On Nov 28, 2016, at 07:01 , Gerriet M. Denkmann wrote: > > But in my case I have “21:37:44” where ““21:37” is bold and “:44” is thin. a. Are you using an attributed string whose text is “21:37:44”, or two unattributed strings? b. You have a — I don’t know exactly what to call it — “logical” or

Re: Vertically Centered Colon

2016-11-28 Thread Alastair Houghton
On 28 Nov 2016, at 16:18, Gerriet M. Denkmann wrote: > > >> On 28 Nov 2016, at 22:13, Eric E. Dolecki 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-aroun

Re: Vertically Centered Colon

2016-11-28 Thread Gerriet M. Denkmann
> On 28 Nov 2016, at 22:13, Eric E. Dolecki 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 UIFontDescriptorFeatureSettingsAttribu

Re: Vertically Centered Colon

2016-11-28 Thread Eric E. Dolecki
You could probably use an attributed string and add an attribute for the last colon: NSBaselineOffsetAttributeName On Mon, Nov 28, 2016 at 10:02 AM Gerriet M. Denkmann wrote: > iOS 10.1.1 > > WWDC 2015,Session 804: Introducing the New System Fonts tells (at about > 23:23) about Vertically Center