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

save files as unified unicode codepoint #1

Open
mroth opened this issue Jun 1, 2013 · 4 comments
Open

save files as unified unicode codepoint #1

mroth opened this issue Jun 1, 2013 · 4 comments

Comments

@mroth
Copy link

mroth commented Jun 1, 2013

Instead of numbering the file sequentially, how would I modify this to save the file with the unicode codepoint for each character in the filename?

(I can help do the char->codepoint conversion, but it's unclear to me where in this code the "current character" is represented such that I can convert it. Thanks!)

@tmm1
Copy link
Owner

tmm1 commented Jun 1, 2013

I'm not sure how to do it. We'd need to parse more of the TTF to figure out which codepoint each image represents.

@mroth
Copy link
Author

mroth commented Jun 1, 2013

It looks like the list of chars is contained in the "CMAP table" -- but I haven't found an easy way to read that from Ruby just yet.

@javan
Copy link

javan commented Sep 21, 2014

This is now possible to do with the TTFunk gem. See prawnpdf/ttfunk#22 and github/gemoji#63 for examples.

@liudanking
Copy link

how is going now?

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

No branches or pull requests

4 participants