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

[Enhancement] Use a default charset if one is not defined #10

Open
dsinni opened this issue May 6, 2018 · 3 comments
Open

[Enhancement] Use a default charset if one is not defined #10

dsinni opened this issue May 6, 2018 · 3 comments
Labels
enhancement New feature or request

Comments

@dsinni
Copy link

dsinni commented May 6, 2018

For those who are unsure of what characters they will need, it would be beneficial to use a default character set without the user having to type all characters out manually.

Just a thought.

Thanks for yet another great tool.

@donmccurdy donmccurdy added the enhancement New feature or request label May 20, 2018
@subelsky
Copy link

subelsky commented Nov 6, 2019

Thanks for making this awesome tool! I had the same need today for an A-Frame project using a custom font. I ended up writing a quick Ruby one-liner to produce a string containing all ASCII printable characters:

 !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~

In case it's helpful, here's the code which could be modified to handle any other hex codes for other languages or character sets (note that it includes space (0x20); not sure if this is needed for an MSDF font definition):

puts (0x20..0x7E).map(&:chr).join

@2xAA
Copy link

2xAA commented May 28, 2021

This would be great, possibly better if there was a default list of different languages/character sets to add.

@donmccurdy
Copy link
Owner

If you're looking for MSDF fonts with a complete ASCII character set, an archive like https://github.com/etiennepinchon/aframe-fonts might be what you want.

For several common languages, having the entire alphabet in an MSDF font is much too large to be practical, and that's basically why this tool exists - to make it very easy to create subsets with the necessary characters.

I don't think I am interested in maintaining lists of all characters for various languages myself, but if someone would like to create such a list I'm happy to link to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants