Re: Kerning Pairs

2014-10-13 Thread Aandi Inston
> > > It sounds like you're trying rrreay hard to avoid admitting to > > yourself that your model code needs to be rewritten. > > I don't think so as our model code works just fine when driven from > Windows V-C that get a font, gets it its outline and mer table and call the > model. Beautiful

Re: Kerning Pairs

2014-10-12 Thread Jens Alfke
> On Oct 12, 2014, at 7:44 PM, Raglan T. Tiger wrote: > > I don't think so as our model code works just fine when driven from Windows > V-C that get a font, gets it its outline and mer table and call the model. > Beautiful output. Sure, it's just going to be limited by pair-based kerning, wh

Re: Kerning Pairs

2014-10-12 Thread Raglan T. Tiger
On Oct 12, 2014, at 9:31 AM, Kyle Sluder wrote: > It sounds like you're trying rrreay hard to avoid admitting to > yourself that your model code needs to be rewritten. I don't think so as our model code works just fine when driven from Windows V-C that get a font, gets it its outline and

Re: Kerning Pairs

2014-10-12 Thread Kyle Sluder
On Sun, Oct 12, 2014, at 08:36 AM, Raglan T. Tiger wrote: > My task is to make the Mac view and controller to capture the selected > font. The rendering of the font is all good. So now I just need kerning > data that I can put into a KERNINGPAIR structure and my task is complete. That's a means,

Re: Kerning Pairs

2014-10-12 Thread Raglan T. Tiger
On Oct 11, 2014, at 12:47 PM, Scott Ribe wrote: > So Kyle's question is: what are you trying to accomplish with that table? We have model code that handles the kerning and it is currently being driven by a Windows view and controller and gives the results we need. My task is to make the Mac

Re: Kerning Pairs

2014-10-11 Thread Scott Ribe
On Oct 11, 2014, at 11:18 AM, Raglan T. Tiger wrote: > For the selected font I want to find the number of kerning pairs kpcnt, make > a new KERNINGPAIR [ kpcnt ] structure and then fill it out. > > The kpcnt and KERNINGPAIR are passed to model code for kerning the glyphs >

Re: Kerning Pairs

2014-10-11 Thread Raglan T. Tiger
On Oct 11, 2014, at 10:16 AM, Kyle Sluder wrote: > So the question, as usual, becomes: what are you actually trying to do? For the selected font I want to find the number of kerning pairs kpcnt, make a new KERNINGPAIR [ kpcnt ] structure and then fill it out. The kpcnt and KERNINGPAIR

Re: Kerning Pairs

2014-10-11 Thread Kyle Sluder
On Oct 11, 2014, at 8:20 AM, Raglan T. Tiger wrote: > > The Windows CDC class has a function: > > DWORD GetKerningPairs( DWORD nNumPairs, LPKERNINGPAIR lpkrnpair ); > > > What would be the equivalent in a Cocoa class? I cannot find any methods > that have kerning in their name. Kerning can

Kerning Pairs

2014-10-11 Thread Raglan T. Tiger
The Windows CDC class has a function: DWORD GetKerningPairs( DWORD nNumPairs, LPKERNINGPAIR lpkrnpair ); What would be the equivalent in a Cocoa class? I cannot find any methods that have kerning in their name. -rags ___ Cocoa-dev mailing li