Re: Pixel-perfect migration from ATSUI to Core Text

2016-08-31 Thread Andreas Falkenhahn
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 >> should work around the fact that there are no APIs that measure the text >> like ATSUI. I

Re: Pixel-perfect migration from ATSUI to Core Text

2016-08-31 Thread Alastair Houghton
On 31 Aug 2016, at 15:52, Andreas Falkenhahn wrote: > > But I still don't understand how computing glyph positioning manually > should work around the fact that there are no APIs that measure the text > like ATSUI. I mean, internally, CTLineGetOffsetForStringIndex()

Re: Pixel-perfect migration from ATSUI to Core Text

2016-08-31 Thread Andreas Falkenhahn
On 31.08.2016 at 04:01 Ken Thomases wrote: > On Aug 30, 2016, at 8:47 AM, Andreas Falkenhahn > wrote: >>> That said, when drawing strings, there are the functions >>> CGContextSetShouldSubpixelPositionFonts() and >>> CGContextSetAllowsFontSubpixelPositioning(). Those

Re: Drawing issue with translucent borderless NSWindow, initial content half stays

2016-08-31 Thread Sandor Szatmari
Sean, > On Aug 30, 2016, at 11:10, Sean McBride wrote: > > Hi all, > > I have a drawing bug in my app, and reduced it to a toy app. Basically, I > create an NSBorderlessWindowMask type window who's content view draws a > translucent rounded rect. Its only subview

Re: NSUserNotificationCenter configuration mysteries

2016-08-31 Thread Graham Cox
> On 31 Aug 2016, at 10:42 AM, Graham Cox wrote: > > note.identifier = self.URL.absoluteString; > > [[NSUserNotificationCenter > defaultUserNotificationCenter]