-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Detect emoji support on Windows 7+ #1377
Conversation
Does setting the fill color not create a background on the smiley? |
seems reasonable, I want to check the broader browser support to make sure we aren;t losing/gaining anyone else. In the mean time, couldyou swap out those quotes travis is complaining about and rebase down to a single commit? thanks @aroben ! |
oop, missed that you had pushed the change already - can you rebase? thanks again! |
U+1F603 SMILING FACE WITH OPEN MOUTH is just an outline on Windows, so we weren't detecting that anything was drawn at all. Now we use U+1F428 KOALA instead, which is filled in by the Windows emoji font (Segoe UI Symbol). Since these emoji are monochrome on Windows 7/8, we set the fill color to red to ensure we get a non-zero red value from the pixel we sample.
Rebased! |
like a machine, you are |
support is identical across the board from my tests (IE 6-11, FF 3-26, Chrome 1-35, Safari 5-7, iOS 5-8, Android 1.5-4.2). great catch, and wonderful PR, @aroben |
Detect emoji support on Windows 7+
Thanks for making it so easy! ❤️ |
right back at cha, slick On Thu, Jun 19, 2014 at 2:44 PM, Adam Roben notifications@github.com
patrick |
Detect emoji support on Windows 7+
U+1F603 SMILING FACE WITH OPEN MOUTH is just an outline on Windows, so we weren't detecting that anything was drawn at all. Now we use U+1F428 KOALA instead, which is filled in by the Windows emoji font (Segoe UI Symbol). Since these emoji are monochrome on Windows 7/8, we set the fill color to red to ensure we get a non-zero red value from the pixel we sample.