Re: mysterious behavior of system font metrics

2015-10-28 Thread Alan Snyder
Thanks for the pointer. I will post there. Alan > On Oct 28, 2015, at 1:48 PM, Jens Alfke wrote: > > I believe there’s a mailing list on lists.apple.com > for CoreText; that might be a good place to ask. > ___ Cocoa-d

Re: mysterious behavior of system font metrics

2015-10-28 Thread Alan Snyder
The log is showing the NSFont description: NSLog(@"%@", [NSFont systemFontOfSize:1]); No drawing was performed until after these log messages were written. There was no graphics context. In fact, no text was drawn using Core Text at all. Java does not use Core Text to draw text, but it does us

Re: mysterious behavior of system font metrics

2015-10-28 Thread Quincey Morris
On Oct 28, 2015, at 12:17 , Alan Snyder wrote: > > The mysterious behavior that I observe is that the result of [NSFont > systemFontOfSize:1] can change over time. For example: > > 2015-10-28 10:22:15.033 java[19620:15284886] > ".HelveticaNeueDeskInterface-Regular 1.00 pt. P [] (0x7f8232e2a460

Re: mysterious behavior of system font metrics

2015-10-28 Thread Jens Alfke
> On Oct 28, 2015, at 12:17 PM, Alan Snyder > wrote: > > The mysterious behavior that I observe is that the result of [NSFont > systemFontOfSize:1] can change over time. For example: The only guess I have is that it might depend on the scaling of the graphics context’s current transform … bu

mysterious behavior of system font metrics

2015-10-28 Thread Alan Snyder
I am using some code (Java) that assumes it is OK to create a size 1 font and then scale-transform it to render other font sizes. I would not expect this to work with Yosemite system fonts, but most of the time it works better than expected. But sometimes it does not. (The expected problem is t