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

Use the correct value for preferred family name. #14

Merged
merged 2 commits into from
Jun 23, 2014

Conversation

marcusramberg
Copy link
Contributor

Value 16 is the correct value according to spec.
http://www.microsoft.com/typography/otspec/name.htm

context "with DejaVuSans" do
let!(:file) { TTFunk::File.open(test_font("DejaVuSans"))}
it "should extract the correct value" do
puts "DOING #{file.name.preferred_family.first}"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Debugging line should probably be removed.

@practicingruby
Copy link
Member

The spec you linked is the OpenType spec, which I think is based on TrueType, but I'm unsure what's different about it (if anything). That said, I found the same information in TTF spec:
https://developer.apple.com/fonts/TTRefMan/RM06/Chap6name.html

I will merge this as soon as I have a chance to test it out in Prawn. Thanks!

practicingruby added a commit that referenced this pull request Jun 23, 2014
Use the correct value for preferred family name.
@practicingruby practicingruby merged commit f77bc00 into prawnpdf:master Jun 23, 2014
@practicingruby
Copy link
Member

@marcusramberg: You now have commit access to all of Prawn's repositories. Please see our contribution guidelines for details, and thanks again for the patch!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants