{"action":"created","issue":{"url":"https://api.github.com/repos/Automattic/node-canvas/issues/1189","repository_url":"https://api.github.com/repos/Automattic/node-canvas","labels_url":"https://api.github.com/repos/Automattic/node-canvas/issues/1189/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/node-canvas/issues/1189/comments","events_url":"https://api.github.com/repos/Automattic/node-canvas/issues/1189/events","html_url":"https://github.com/Automattic/node-canvas/issues/1189","id":336286778,"node_id":"MDU6SXNzdWUzMzYyODY3Nzg=","number":1189,"title":"ctx.font with multiple fonts results in default font","user":{"login":"pravdomil","id":2387356,"node_id":"MDQ6VXNlcjIzODczNTY=","avatar_url":"https://avatars2.githubusercontent.com/u/2387356?v=4","gravatar_id":"","url":"https://api.github.com/users/pravdomil","html_url":"https://github.com/pravdomil","followers_url":"https://api.github.com/users/pravdomil/followers","following_url":"https://api.github.com/users/pravdomil/following{/other_user}","gists_url":"https://api.github.com/users/pravdomil/gists{/gist_id}","starred_url":"https://api.github.com/users/pravdomil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pravdomil/subscriptions","organizations_url":"https://api.github.com/users/pravdomil/orgs","repos_url":"https://api.github.com/users/pravdomil/repos","events_url":"https://api.github.com/users/pravdomil/events{/privacy}","received_events_url":"https://api.github.com/users/pravdomil/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-06-27T15:47:33Z","updated_at":"2018-06-27T20:10:55Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"## Bug\r\n\r\nSetting `ctx.font` to multiple fonts like: `\"30px Courier, 'Times New Roman'\"` sets font family to default font, see output:\r\n\r\n![image](https://user-images.githubusercontent.com/2387356/41984713-9f34d5d4-7a31-11e8-82e7-230c7137e213.png)\r\n\r\n## Steps to Reproduce\r\n<!--- For bugs, provide a short, complete code example to reproduce the issue. -->\r\n```js\r\nconst { createCanvas } = require(\"canvas\")\r\nconst canvas = createCanvas(200, 200)\r\nconst ctx = canvas.getContext(\"2d\")\r\n\r\n// Write \"Awesome!\"\r\nctx.font = \"30px Courier, 'Times New Roman'\"\r\nctx.rotate(0.1)\r\nctx.fillText(\"Awesome!\", 50, 100)\r\n\r\nconsole.log('<img src=\"' + canvas.toDataURL() + '\" />')\r\n```\r\n\r\n## Your Environment\r\n* Version of node-canvas (e.g. 1.4.0): 2.0.0-alpha.12\r\n* Environment (e.g. node 4.2.0 on Mac OS X 10.8): node 10.1.0, macOS 10.13.5"},"comment":{"url":"https://api.github.com/repos/Automattic/node-canvas/issues/comments/400813192","html_url":"https://github.com/Automattic/node-canvas/issues/1189#issuecomment-400813192","issue_url":"https://api.github.com/repos/Automattic/node-canvas/issues/1189","id":400813192,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMDgxMzE5Mg==","user":{"login":"chearon","id":78187,"node_id":"MDQ6VXNlcjc4MTg3","avatar_url":"https://avatars3.githubusercontent.com/u/78187?v=4","gravatar_id":"","url":"https://api.github.com/users/chearon","html_url":"https://github.com/chearon","followers_url":"https://api.github.com/users/chearon/followers","following_url":"https://api.github.com/users/chearon/following{/other_user}","gists_url":"https://api.github.com/users/chearon/gists{/gist_id}","starred_url":"https://api.github.com/users/chearon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chearon/subscriptions","organizations_url":"https://api.github.com/users/chearon/orgs","repos_url":"https://api.github.com/users/chearon/repos","events_url":"https://api.github.com/users/chearon/events{/privacy}","received_events_url":"https://api.github.com/users/chearon/received_events","type":"User","site_admin":false},"created_at":"2018-06-27T20:10:54Z","updated_at":"2018-06-27T20:10:54Z","author_association":"COLLABORATOR","body":"Fair enough"}}
{"actor":{"display_login":"chearon"}}