Okay, does anyone know how I could display text in an NSView such that it as closely as possible fits withing a given NSRect (always being inside, not touching sides)? I want to be able to take an arbitrary string with arbitrary text formating (bold, italic, etc) and be able to increase and decrease it's size so it fits nicely with the NSRect's boundaries. I've been scouring google for any such program in any language, but have been able to find didly squat.
Any help (especially in Java) would be appreciated. Thanks,
F-bacher