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

Removed "Characters" keyword to match grDevices #3

Closed
wants to merge 1 commit into from
Closed

Removed "Characters" keyword to match grDevices #3

wants to merge 1 commit into from

Conversation

gvfarns
Copy link

@gvfarns gvfarns commented Jul 22, 2014

The file R/src/library/grDevices/src in the R project has a list of all acceptable keywords. The list does not contain "Characters", which does appear in afm files generated by Rttf3pt1. The result is an ugly warning every time a font is used. This change suppresses the addition of this keyword.

@wch
Copy link
Owner

wch commented Jul 23, 2014

Thanks for the PR! I'm reluctant to change any of the C code, though, since I'm just using the pristine, untouched sources from ttf2pt1, and I'd like to keep it that way.

I know it's uglier, but do you mind modifying the ttf_extract function from the extrafont package to remove the "Characters" line?

For example, perhaps add a function to strip the "Characters" line and call it here: https://github.com/wch/extrafont/blob/freetype/R/truetype.r#L90

@wch
Copy link
Owner

wch commented Jul 23, 2014

Fixed by wch/extrafont#38.

@wch wch closed this Jul 23, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants