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

Use Modernizr.canvastext instead of reinventing the wheel in the emoji #391

Merged
merged 1 commit into from
Oct 17, 2011
Merged

Use Modernizr.canvastext instead of reinventing the wheel in the emoji #391

merged 1 commit into from
Oct 17, 2011

Conversation

mathiasbynens
Copy link
Contributor

Use Modernizr.canvastext instead of reinventing the wheel in the emoji feature detect.

Note: The old version used fillText without checking if it’s actually available (and working).

var ctx = node.getContext('2d');
ctx.textBaseline = "top";
ctx.font = "32px Arial";
ctx.fillText("
Copy link
Contributor Author

Choose a reason for hiding this comment

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

OMG IT SAYS DUDE

@paulirish
Copy link
Member

Thx mathias

paulirish added a commit that referenced this pull request Oct 17, 2011
Use `Modernizr.canvastext` instead of reinventing the wheel in the emoji
@paulirish paulirish merged commit e2beb94 into Modernizr:master Oct 17, 2011
patrickkettner pushed a commit to patrickkettner/Modernizr that referenced this pull request Feb 22, 2015
Use `Modernizr.canvastext` instead of reinventing the wheel in the emoji
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