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

Added fixedCodepoints option to allow specifying codepoints for some … #30

Merged
merged 1 commit into from
Mar 21, 2016

Conversation

killwort
Copy link

…glyphs

if (config.fixedCodepoints && config.fixedCodepoints[fileName]){
currentCodePoint = config.fixedCodepoints[fileName].toString(16).toUpperCase();
} else {
currentCodePoint = (currentGlyph++).toString(16).toUpperCase();
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I understand correctly, this would increase the currentCodePoint value pushed to glyphMap compared to the previous version.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, I've removed counter increase happening several lines later. So currentGlyph gets increased only if there's no fixed codepoint defined for current file.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, was incorrectly assuming that currentCodePoint = (currentGlyph++) would assign the increased value.

@backflip
Copy link
Owner

backflip commented Oct 6, 2015

Thanks for this input! Could you add a test for this new option?

backflip added a commit that referenced this pull request Mar 21, 2016
Added fixedCodepoints option to allow specifying codepoints for some …
@backflip backflip merged commit 374592c into backflip:master Mar 21, 2016
@backflip
Copy link
Owner

Test added in 9ba2099

@backflip
Copy link
Owner

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