On 13/10/2012, at 11:22 AM, Graham Cox <graham....@bigpond.com<mailto:graham....@bigpond.com>> wrote:
On 01/10/2012, at 11:02 AM, Andres Kievsky <a...@a2apps.com.au<mailto:a...@a2apps.com.au>> wrote: Then I would render each font in a small, low resolution bitmap (say, 10x10) and then use that bitmap to find the centres around which to draw circles. So if you have a bit set at (5,5) in the low res bitmap, and you want to render it in a 100x100 size, just draw a circle around (50,50). Repeat for any other bits that are set. You can achieve this effect using a dashed line. Setting the end caps to round and the spacing to zero for the dash produces a series of round circles along the path. It's much faster and easier than your method, though coming up with the exact spacing and line width needed to fit a given path exactly takes a bit of working out. --Graham That's not quite the same effect though (since the dots will follow the path rather than be at equal distances of each other), and the low-res bitmap method is significantly faster. -- ank _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com