Changeset 31788
- Timestamp:
- 03/16/2015 12:05:05 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/wp-emoji.js
r31787 r31788 83 83 } 84 84 85 /* 86 * Chrome on OS X added native emoji rendering in M41. Unfortunately, 87 * it doesn't work when the font is bolder than 500 weight. So, we 88 * check for bold rendering support to avoid invisible emoji in Chrome. 89 */ 85 90 context.textBaseline = 'top'; 86 91 context.font = '600 32px Arial'; … … 100 105 } else { 101 106 /* 102 * Chrome on OS X added native emoji rendering in M41. Unfortunately,103 * it doesn't work when the font is bolder than 500 weight. So, we104 * check for bold rendering support to avoid invisible emoji in Chrome.107 * This creates a smiling emoji, and checks to see if there is any image data in the 108 * center pixel. In browsers that don't support emoji, the character will be rendered 109 * as an empty square, so the center pixel will be blank. 105 110 */ 106 111 context.fillText( String.fromCharCode( 55357, 56835 ), 0, 0 );
Note: See TracChangeset
for help on using the changeset viewer.