Re: Getting a dotted font from a regular font
Re: Getting a dotted font from a regular font
- Subject: Re: Getting a dotted font from a regular font
- From: Andres Kievsky <email@hidden>
- Date: Mon, 01 Oct 2012 14:02:24 +1300
- Acceptlanguage: en-US, en-NZ
- Thread-topic: Getting a dotted font from a regular font
If by 'dotted font' you mean something like this:
http://www.fontspace.com/honey-and-death/dotline
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.
Hope it helps,
-- ank
On 01/10/2012, at 10:35 AM, Eric Gorr <email@hidden<mailto:email@hidden>> wrote:
An odd request I know, but I have a need to take a regular font and obtain a dotted version of it.
Any clever ideas that would not involve loading the font into a font editor and turing it into a dotted font?
_______________________________________________
Cocoa-dev mailing list (email@hidden<mailto:email@hidden>)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com<http://lists.apple.com>
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden