-
Notifications
You must be signed in to change notification settings - Fork 75
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
Non-standard SVG #84
Comments
The black and white or color SVGs? Can you provide specific examples? |
The color SVGs. Here is an example of what the TTF file contains. <svg xmlns="http://www.w3.org/2000/svg" id="glyph833">
<g transform="translate(0 -6.75) translate(0,-1638.4) scale(56.8888888889)">
<path d="M20 21.5a1.5 1.5 0 0 1-3 0v-3a1.5 1.5 0 1 1 3 0v3z" fill="#67757F" />
<path d="M27.138 33.817C27.183 35.022 26.206 36 25 36H12.183A2.183 2.183 0 0 1 10 33.817V21c0-1.205.115-2.183 2.183-2.183S15 23 25 21c1.091 0 2.183.978 2.138 2.183v10.634z" fill="#E1E8ED" />
<path d="M18.687 18.538c-2.595 0-6.962-1.934-6.962-5.898 0-3.988 4.351-5.414 7.005-11.401.751-1.693.999-1.107 1.86-.076 2.06 2.463 5.058 7.483 5.058 11.574-.001 4.641-4.64 5.801-6.961 5.801z" fill="#FCAB40" />
<path d="M18.687 17.447c-4.184 0-3.482-5.802 0-9.283 2.321 1.16 5.801 9.283 0 9.283z" fill="#FDCB58" />
<path d="M11 29a1 1 0 1 1-2 0v-7a1 1 0 1 1 2 0v7zm4 3a1 1 0 1 1-2 0v-7a1 1 0 1 1 2 0v7zm0-11a1 1 0 1 1-2 0v-1a1 1 0 1 1 2 0v1z" fill="#CCD6DD" />
</g>
</svg> I'm not sure about OTSVG compliance, it might be okay. The issue I was having is that the SVG parser I use only supports "regular" SVG, which its lack of provided size makes it fail. |
What is the unicode hex for this glyph? |
This is the candle emoji, U+1F56F. |
I just remembered. Removing viewbox is intentional, though I'm not sure if still required: https://github.com/13rac1/scfbuild/blob/9acc7fc5fedbf48683d8932dd5bd7583bf922bae/scfbuild/builder.py#L102-L107
Commit: 13rac1/scfbuild@c63c13c Relevant background: 13rac1/emojione-color-font#50 |
Oh, I see! That's unfortunate. |
Seems appropriate to test whether this still causes a problem or not. Removing the viewbox is probably not a good idea if Gecko/Edge have fixed it. Particularly because browsers in particular tend to semi-automatically update themselves nowadays. |
@iKarith That's true. There's no good way to automate this test though. Anyone want to run down if this is needed anymore? Will need all browsers and other font renders tested. |
Hello!
In the released 12.0.1 emoji font, the SVG components do not correctly comply with the standard by not providing a bounding box size, making some SVG parsers fail. I find that odd, as it seems the asset files do contain a bounding box.
I don’t really understand the transform business too in the font, so I can’t really fix it myself.
Could this change be made in the font? Or if it is like a file size issue, could it be an option we can opt-in with the compiler?
Thanks in advance!
The text was updated successfully, but these errors were encountered: