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

Missing 5 codepoints: 0x30, 0x31, 0x32, 0x33, 0x39 #51

Closed
caperaven opened this issue Sep 23, 2022 · 7 comments
Closed

Missing 5 codepoints: 0x30, 0x31, 0x32, 0x33, 0x39 #51

caperaven opened this issue Sep 23, 2022 · 7 comments

Comments

@caperaven
Copy link

I am trying to generate a sdf using a icon font created in iconmoon.
I get the above message and it does not generate the atlas.

The command I used was
msdf-atlas-gen -type sdf -font .\icons.ttf -json icons_font.json -format png -imageout icons_font.png -charset charset.txt -dimensions 256 256

and the charset.txt uses the text you would use in the css to display the icon.
"\e900","\e901","\e902","\e903"

Any assistance in helping me generate the sdf from this icon font would be greatly appreciated.

@Chlumsky
Copy link
Owner

Did you read Character set specification syntax?

@caperaven
Copy link
Author

caperaven commented Sep 23, 2022

I did.

"\e900","\e901","\e902","\e903"

  1. separated by comma or space - check
  2. in between quotation marks - check
  3. backslash used as escape character - check

also tried double backslashes
"\\e900","\\e901","\\e902","\\e903"

What am I missing?

@Chlumsky
Copy link
Owner

I have literally no idea what something like \e903 even is supposed to mean, because in the version I read, I didn't see anything about this kind of syntax, so maybe we each read something different...

@caperaven
Copy link
Author

its basically the text used to render the icon

CSS
.icon-locate-asset:before {
content: "\e900";
}

image

Also tried using the liga in the txt file
'\locate','\settings','\account','\approved'

in that case it tells me
"Failed to load character set specification."

@caperaven
Copy link
Author

for the hell of it, I also tried
'\icon-locate-asset','\icon-settings-outline','\icon-account','\icon-approved'
but still gives me "Failed to load character set specification."

I must be doing something wrong here but for the life me of don't know what

@Chlumsky
Copy link
Owner

You don't seem to understand what the character set file is. It is a set of numbers - Unicode values. So if you mean the hexadecimal Unicode value E900, then why don't you just put in 0xe900? Otherwise, I still have no idea what you're trying to do.

@caperaven
Copy link
Author

ok, yes, I checked on https://fontdrop.info/ and turns out that it is the unicode.
so setting my values to 0xe900, 0xe901 worked.

Thank you very much for your patience and support.

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

2 participants