Rounded corners script

Primary tabs

12 posts / 0 new
Last post
Tobias Kvant's picture
Offline
Joined: 15 Feb 2004 - 3:49am
Rounded corners script
0

Anyone know of a rounded corners python script for Fontlab, similar to Xtream Path for Illustrator?

Pieter van Rosmalen's picture
Joined: 3 Mar 2005 - 3:23am
0

Yes, Eric van Blokland wrote one for FF Unit Rounded.

Pieter van Rosmalen's picture
Joined: 3 Mar 2005 - 3:23am
0

But i don’t know if it’s written to be used in FontLab. Perhaps it’s for Superpolator.

Pieter

Adam Twardoch's picture
Offline
Joined: 3 Dec 2002 - 7:36pm
0

It was for Superpolator, which of course is a tool that you'd use with FontLab Studio rather than in it.

A.

Tim Ahrens's picture
Offline
Joined: 28 Sep 2004 - 9:15am
0

I wrote a rounded corners Python script for my [[http://justanotherfoundry.com/Masnine|Mashine Rounded]] but that only accepts straight polygons as an input so it probably wouldn't help you much.

[[http://www.typophile.com/user/8183|Georg Seifert]] showed me a rounded corners script he has written for FontLab. It is really sophisticated: it gives obtuse angles a greater curve radius in order to make it visually consistent!

Maybe you can convince him to share it, it is probably better than anything else out there.

Erik van Blokland's picture
Joined: 18 Dec 2002 - 9:53am
0

[[http://new.typemedia.org|TypeMedia grad]] Frederik Berlaen wrote the round corner tool I used for FF Unit. [[http://www.typemytype.com/scripting/roundingufo/|Movie here.]] The confusion with [[http://superpolator.com| Superpolator]] got started on a [[http://www.spiekermann.com/mten/index.html|Spiekerblog post]]. For Unit Rounded, both tools were used, but only Frederik's made round corners. And yes, it does make proportional corners, it even handles curve to curve segments.

Adam Twardoch's picture
Offline
Joined: 3 Dec 2002 - 7:36pm
0

Erik,

so was it so that Fredrik's script made the rounded corners and then you used Superpolator to help find Spiekermann the "right" amount of rounding, i.e. the optimal instances between fully straight and fully round?

A.

Frederik Berlaen's picture
Joined: 30 Mar 2007 - 9:06am
0

Hi

Erik asked me a while ago for some scripts to "turn" corners into round ones.
I wrote a stand alone app to convert UFO's to rounded UFO's see ( http://www.typemytype.com/scripting/roundingufo/ )
and next to that i wrote also a FL script that does the same thing because its the same code :). It can add rounding to the whole font or just to one point in a glyph (short movie: http://www.vimeo.com/704368 )

the input can be a corner with straight lines aswell as a combination with curves or just only curves.

The parameters are the radius of the rounding and where you want rounding: in the black or white corners

Erik used the standalone UFOrounding app for the round corners and superpolator for the interpolations :)
For the standalone app i also added inktraps because its basically the same thing: adding rounding or inktraps :)

gr
Frederik

Jason Pagura's picture
Offline
Joined: 10 Sep 2006 - 6:19pm
0

When looking through Hrant's proposal for an ink trap formula, [[http://www.themicrofoundry.com/ss_trapping1.html|The Trapping Flower]], I too realized It could also be adapted to rounding corners as well (and further that the "flower" need not necessarily be circular). Of course, not being a programmer, I have no idea as to how to automate this method.

I'm curious as to how you did it, Frederik, and if your app could be adapted to run with FontForge, either as a Python script internally or as a post-process on .sfd files.

Tobias Kvant's picture
Offline
Joined: 15 Feb 2004 - 3:49am
0

Thanks for your comments guys. I think I´ll contact Georg Seifert then, thanks Tim.
Frederik, is your FL script available?

Christian's picture
Offline
Joined: 16 Apr 2005 - 10:57am
0

I just released a python rounded corner script for FontLab yesterday at [[http://betatype.com]]. It's very nuts and bolts, but it allows a user to select the points he/she wants rounded, configure x and y radius, as well as the length of the bezier handles, influencing the steepness of the curve.

It definitely isn't designed to be automatic where you can point it at a whole font and expect some magic new design to come out of it. That never works anyway. You really need to pick the corners that need to be rounded, and by how much.

Tobias Kvant's picture
Offline
Joined: 15 Feb 2004 - 3:49am
0

Great, looks really usable, thanks for sharing Christian.