Re: Pixel-perfect migration from ATSUI to Core Text

2016-09-01 Thread Quincey Morris
On Sep 1, 2016, at 10:53 , Andreas Falkenhahn wrote: > > Who said that the answer was clearly "no”? Me. And you. You took a trivially simple single-character example, and failed to come up with the same answer. > So far these attempts haven’t been successful but … You

Re: Pixel-perfect migration from ATSUI to Core Text

2016-09-01 Thread Andreas Falkenhahn
On 01.09.2016 at 19:19 Quincey Morris wrote: > On Sep 1, 2016, at 09:42 , Andreas Falkenhahn wrote: > I know but currently I'm just trying to replicate the exact ATSUI look > But why??? Your original reason was along the lines of “to see if I > could”, and the

Re: Pixel-perfect migration from ATSUI to Core Text

2016-09-01 Thread Quincey Morris
On Sep 1, 2016, at 09:42 , Andreas Falkenhahn wrote: > > I know but currently I'm just trying to replicate the exact ATSUI look But why??? Your original reason was along the lines of “to see if I could”, and the answer is clearly “no”. Now you’re just setting yourself

Re: Pixel-perfect migration from ATSUI to Core Text

2016-09-01 Thread Andreas Falkenhahn
On 01.09.2016 at 15:44 Alastair Houghton wrote: > On 1 Sep 2016, at 14:38, Andreas Falkenhahn wrote: >> The problem is most likely that the “W” doesn’t start at x = 0 >>> (have you tried calling CTLineGetOffsetForStringIndex(line, 0, NULL)?) >> That returns 0, that's

Re: Pixel-perfect migration from ATSUI to Core Text

2016-09-01 Thread Alastair Houghton
On 1 Sep 2016, at 14:38, Andreas Falkenhahn wrote: > > The problem is most likely that the “W” doesn’t start at x = 0 >> (have you tried calling CTLineGetOffsetForStringIndex(line, 0, NULL)?) > > That returns 0, that's why I was using 1. Hmmm. OK, well looking at the

Re: Pixel-perfect migration from ATSUI to Core Text

2016-09-01 Thread Andreas Falkenhahn
On 01.09.2016 at 10:00 Alastair Houghton wrote: > On 31 Aug 2016, at 19:24, Andreas Falkenhahn wrote: >> On 31.08.2016 at 20:08 Alastair Houghton wrote: >>> On 31 Aug 2016, at 15:52, Andreas Falkenhahn wrote: But I still don't understand

How to Open Dictionary

2016-09-01 Thread Gerriet M. Denkmann
I have an iOS app (9.3.5) which has an UITextView where the following is done often: User long presses first word (User clicks “Select” - only needed if Keyboard is visible) User clicks “Define” → the definition of the first word is displayed (e.g. in Oxford Dictionary of English). I want to

Re: Pixel-perfect migration from ATSUI to Core Text

2016-09-01 Thread Alastair Houghton
On 31 Aug 2016, at 19:24, Andreas Falkenhahn wrote: > > On 31.08.2016 at 20:08 Alastair Houghton wrote: > >> On 31 Aug 2016, at 15:52, Andreas Falkenhahn wrote: > >>> But I still don't understand how computing glyph positioning manually >>>