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

Support specifying glyphmapping as a file #445

Open
matthiasclasen opened this issue Jan 23, 2023 · 3 comments
Open

Support specifying glyphmapping as a file #445

matthiasclasen opened this issue Jan 23, 2023 · 3 comments

Comments

@matthiasclasen
Copy link

I was trying to use nanoemoji to generate an icon font from a bunch of svg icons.

It would be excellent if I could control the glyph names.

The commandline options for this seem to be a bit prickly, and I could not
figure out how to make it use another generator. Ideally I would like to just
pass in that csv file.

@rsheeter
Copy link
Collaborator

You would use --glyphmap_generator: A program that takes a list of filenames and outputs a file csv whose rows contain filename, codepoint(s), glyph name.

We could also just let you pass in such a file, I imagine that might be nicer for your use case?

@rsheeter rsheeter self-assigned this Jan 24, 2023
@matthiasclasen
Copy link
Author

By now, I've figured out how make a generator work, so this is less important for me

@rsheeter rsheeter removed their assignment Jan 25, 2023
@DeltaRazero
Copy link

DeltaRazero commented Jun 24, 2023

We could also just let you pass in such a file, I imagine that might be nicer for your use case?

Is the --glyphmap_file parameter supposed to do that? I can't get it to work at all, following the format --glyphmap_generator outputs. I see nanoemoji instead making its own blank Font.glyphmap file.

Okay I see now that isn't supported at all. I would like to have control over the glyph index for each svg without having it in the filename. I suppose that functionality is currently not present, so this feature would be beneficial to me.

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

3 participants