{"action":"opened","issue":{"url":"https://api.github.com/repos/processing/p5.js/issues/1842","repository_url":"https://api.github.com/repos/processing/p5.js","labels_url":"https://api.github.com/repos/processing/p5.js/issues/1842/labels{/name}","comments_url":"https://api.github.com/repos/processing/p5.js/issues/1842/comments","events_url":"https://api.github.com/repos/processing/p5.js/issues/1842/events","html_url":"https://github.com/processing/p5.js/issues/1842","id":211858458,"number":1842,"title":"Error font cannot be defined","user":{"login":"akhilanadimpalli","id":25985319,"avatar_url":"https://avatars1.githubusercontent.com/u/25985319?v=3","gravatar_id":"","url":"https://api.github.com/users/akhilanadimpalli","html_url":"https://github.com/akhilanadimpalli","followers_url":"https://api.github.com/users/akhilanadimpalli/followers","following_url":"https://api.github.com/users/akhilanadimpalli/following{/other_user}","gists_url":"https://api.github.com/users/akhilanadimpalli/gists{/gist_id}","starred_url":"https://api.github.com/users/akhilanadimpalli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akhilanadimpalli/subscriptions","organizations_url":"https://api.github.com/users/akhilanadimpalli/orgs","repos_url":"https://api.github.com/users/akhilanadimpalli/repos","events_url":"https://api.github.com/users/akhilanadimpalli/events{/privacy}","received_events_url":"https://api.github.com/users/akhilanadimpalli/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-03-04T05:53:29Z","updated_at":"2017-03-04T05:53:29Z","closed_at":null,"body":"hai\r\ni have an error while writing the below program.\r\n\r\nvar font;\r\nfunction preload()\r\n{\r\n  font=loadFont('Avenir-Next-LT-Pro-Demi_5188');\r\n}\r\n\r\nfunction setup() {\r\n  createCanvas(800,300);\r\n  background(51);\r\n  textFont=\"30px Arial\";;  \r\n  textSize(128);\r\n  fill(255);\r\n  noStroke();\r\n  text('Akhila',100,200);\r\n  var points= font.textToPoints('Akhila',100,200);\r\n  console.log(points);\r\n  for(var i=0;i<points.length;i++)\r\n  {\r\n    var pt=points[i];\r\n    stroke(0,255,0);\r\n    strokeWeight(4);\r\n    point(pt.x, pt.y);\r\n  }\r\n \r\n}\r\n\r\nfunction draw() {\r\n  \r\n}\r\n\r\ni downloaded the font style and kept it at p5 file .\r\nplease help me that how to define a font style in javascript in p5 ."}}
{"actor":{"display_login":"akhilanadimpalli"}}