-
Notifications
You must be signed in to change notification settings - Fork 220
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
OpenMoji on dark background - initial attempt to fix #31 #231
base: master
Are you sure you want to change the base?
Conversation
@carlinmack Super! Very cool! Comments:
Happy to help with the code / testing ... once we discussed everything a bit more. |
|
Layer name:
True. But then I think it would be better to add the white padding on the fly in the buildsystem on export to color/ and black/
Note that the padding of 1. and 2. is not the same ... but should. Haven't had time to look into it, but likely this is because some people will have black shapes designed either by using just fill + no stroke OR fill and strokeWeight X.
Might be possible to use recursion to walk trough all sub groups
Would not be the case if SVGO were the last step |
|
btw my intention for this isn't actually to overwrite the file, but output this so export-svg can use it. I'm just overwriting the file for debugging etc now. I recommend trying out a few examples (by editing openmoji.json like I mentioned in my first post) so you can see how much work this would be |
I think a better approach would be to complete the strokes in the line-supplement layer, and then generate the padding with only the line and line-supplement layer. If we really don't want the extra stroke in the |
|
@carlinmack Wow! This is mega! I'm surprised how good it already works out of the box. Could you grant me write access to your POC repo? Once I have time again ... I'm keen to add a few ideas. But still ... this will involve quite some manual tweaking in the end :( Which we should discuss at some point in a call. |
I've added you to the repo, I think the main work will be redrawing strokes and adding strokes, but hopefully not too much! let me know when you want to call :) |
@carlinmack Super + many thanks for granting me access! Still super busy ... won't have time in the next days / weeks. But Daniel and myself might be able to find someone on HfG to support this over the summer. |
Works fairly well but:
We could fix the first one by mandating that all emoji must be flat and adding a test, or by being more careful when adding attributes to children.
I'm not too sure how to fix the second one, JSDOM doesn't seem to have much documentation.
To test, I highly recommend deleting everything but the emoji you want to generate from openmoji.json. For example, the emoji in this PR was generated with the following openmoji.json:
PS b-g feel free to make any changes to code style etc :)