Ah, sorry I didn't see these posts until now.
Sound like good recommendations. For the time being, I don't mind relying on a
specific font, but I'll look over the SpeedometerView example, and see about
implementing this at a higher level.
Thanks for the tips.
J.
On 2010-06-01, at 9:10 AM, Do
Let me second Alastair's recommendations. Our standard developer example for
this sort of thing is in the SpeedometerView example code, in the
SpeedyCategories.m file; take a look at the BezierConversions category on
NSString, and the associated BezierNSLayoutManager.
Douglas Davidson
On Jun
On 1 Jun 2010, at 02:42, James Maxwell wrote:
> Okay, so the simple solution isn't simple.
>
> this:
>
> NSFont* artFont_2 = [NSFont fontWithName:@"Sonara" size:30.0];
> NSLog(@"what's up? %i", [artFont_1 glyphWithName:@"FULL STOP"]);
>
> prints the glyph as "0" (which is NOT the glyph ID)
>
>
Okay, so the simple solution isn't simple.
this:
NSFont* artFont_2 = [NSFont fontWithName:@"Sonara" size:30.0];
NSLog(@"what's up? %i", [artFont_1 glyphWithName:@"FULL STOP"]);
prints the glyph as "0" (which is NOT the glyph ID)
So what gives?
In fact, all of my glyphs return zero... mmm... yu
I'm sure many here know all this, but just in case anyone's confused about it,
in future, I'll post what I've found.
Opening the font on each machine, using Font Examiner (handy software... might
have to buy a copy!), I can see that the offset of all the glpyhs on my Macbook
is less than on the