A script that autohints a font

View: New views
4 Messages — Rating Filter:   Alert me  

A script that autohints a font

by Ethan Dunham :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I've been trying to develop a script that generates a decent TrueType  
font from an OTF. Obviously the big issue is hinting. Is there a way  
to do a "guess" at the Bluevalues within the script?

Right now I have:

SelectHintingNeeded()
SetPref("DetectDiagonalStems",1)
AutoHint()
# Need to do a guess at the Blue Values here
# Then AutoHint() again, right?
AutoInstr()


Any insight would be greatly appreciated. Thanks-

Ethan Dunham

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Fontforge-users mailing list
Fontforge-users@...
https://lists.sourceforge.net/lists/listinfo/fontforge-users

Re: A script that autohints a font

by Barry Schwartz-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ethan Dunham <ethan@...> skribis:
> Subject: [Fontforge-users] A script that autohints a font
> From: Ethan Dunham <ethan@...>
> Date: Sat, 07 Nov 2009 21:21:01 -0500
> To: fontforge-users@...
>
> I've been trying to develop a script that generates a decent TrueType  
> font from an OTF. Obviously the big issue is hinting. Is there a way  
> to do a "guess" at the Bluevalues within the script?

private.guess(), according to the docs.


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Fontforge-users mailing list
Fontforge-users@...
https://lists.sourceforge.net/lists/listinfo/fontforge-users

Re: A script that autohints a font

by Ethan Dunham :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks Barry, I was using the older, non-python language though. I  
guess I need to learn Python. Is there a command in FontForge's own  
language to do this? Probably not.


Ethan



On Nov 7, 2009, at 10:49 PM, Barry Schwartz wrote:

> Ethan Dunham <ethan@...> skribis:
>> Subject: [Fontforge-users] A script that autohints a font
>> From: Ethan Dunham <ethan@...>
>> Date: Sat, 07 Nov 2009 21:21:01 -0500
>> To: fontforge-users@...
>>
>> I've been trying to develop a script that generates a decent TrueType
>> font from an OTF. Obviously the big issue is hinting. Is there a way
>> to do a "guess" at the Bluevalues within the script?
>
> private.guess(), according to the docs.
>


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Fontforge-users mailing list
Fontforge-users@...
https://lists.sourceforge.net/lists/listinfo/fontforge-users

Re: A script that autohints a font

by Barry Schwartz-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ethan Dunham <ethan@...> skribis:
> Thanks Barry, I was using the older, non-python language though. I  
> guess I need to learn Python. Is there a command in FontForge's own  
> language to do this? Probably not.

The docs say PrivateGuess(key) :)

I'm not too fond of the Blue Values guesser, myself.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Fontforge-users mailing list
Fontforge-users@...
https://lists.sourceforge.net/lists/listinfo/fontforge-users