Correct PS private values for each weight & style #26

Closed
sungsit opened this Issue Nov 17, 2015 · 6 comments

Projects

None yet

2 participants

@sungsit
Member
sungsit commented Nov 17, 2015

For better auto-hinting results.

@sungsit
Member
sungsit commented Nov 17, 2015

@davelab6: Is there a way to set PS private in FontForge via python?

@sungsit sungsit changed the title from Manually set PS private values for each weight & style to Correct PS private values for each weight & style Nov 17, 2015
@davelab6
Contributor
@sungsit
Member
sungsit commented Nov 18, 2015

@davelab6 Thanks! After a while, I figured out that private is a list of tuple.

font.private['BlueValues'] = (-20, 0, 600, 620, 780, 800, 810, 830)
font.private['OtherBlues'] = (-225, -210)
font.private['StdHW'] = 100,
font.private['StdVW'] = 137,
@davelab6
Contributor

For better auto-hinting results

I don't understand this, actually. With which autohinter?

@sungsit
Member
sungsit commented Nov 18, 2015

I'm testing AFDKO authohint for otf hinting. It requires StemSnapH & StemSnapV which different from weight to weight so I need to set these values in sfd sources, like font.private.guess('StemSnapH'). And it seems to help ttfautohint too.

@sungsit sungsit closed this Dec 1, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment