Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct PS private values for each weight & style #26

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

Correct PS private values for each weight & style #26

sungsit opened this issue Nov 17, 2015 · 6 comments

Comments

@sungsit
Copy link
Member

@sungsit sungsit commented Nov 17, 2015

For better auto-hinting results.

@sungsit
Copy link
Member Author

@sungsit sungsit commented Nov 17, 2015

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

@sungsit sungsit changed the title Manually set PS private values for each weight & style Correct PS private values for each weight & style Nov 17, 2015
@davelab6
Copy link
Contributor

@davelab6 davelab6 commented Nov 17, 2015

@sungsit
Copy link
Member Author

@sungsit 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
Copy link
Contributor

@davelab6 davelab6 commented Nov 18, 2015

For better auto-hinting results

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

@sungsit
Copy link
Member Author

@sungsit 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants