{"action":"created","issue":{"url":"https://api.github.com/repos/Shoes3/shoes3/issues/54","labels_url":"https://api.github.com/repos/Shoes3/shoes3/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/Shoes3/shoes3/issues/54/comments","events_url":"https://api.github.com/repos/Shoes3/shoes3/issues/54/events","html_url":"https://github.com/Shoes3/shoes3/issues/54","id":56492512,"number":54,"title":"SVG support for Shoes","user":{"login":"BackOrder","id":8844578,"avatar_url":"https://avatars.githubusercontent.com/u/8844578?v=3","gravatar_id":"","url":"https://api.github.com/users/BackOrder","html_url":"https://github.com/BackOrder","followers_url":"https://api.github.com/users/BackOrder/followers","following_url":"https://api.github.com/users/BackOrder/following{/other_user}","gists_url":"https://api.github.com/users/BackOrder/gists{/gist_id}","starred_url":"https://api.github.com/users/BackOrder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BackOrder/subscriptions","organizations_url":"https://api.github.com/users/BackOrder/orgs","repos_url":"https://api.github.com/users/BackOrder/repos","events_url":"https://api.github.com/users/BackOrder/events{/privacy}","received_events_url":"https://api.github.com/users/BackOrder/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Shoes3/shoes3/labels/Enhancement","name":"Enhancement","color":"eb6420"}],"state":"open","locked":false,"assignee":{"login":"ccoupe","id":222691,"avatar_url":"https://avatars.githubusercontent.com/u/222691?v=3","gravatar_id":"","url":"https://api.github.com/users/ccoupe","html_url":"https://github.com/ccoupe","followers_url":"https://api.github.com/users/ccoupe/followers","following_url":"https://api.github.com/users/ccoupe/following{/other_user}","gists_url":"https://api.github.com/users/ccoupe/gists{/gist_id}","starred_url":"https://api.github.com/users/ccoupe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccoupe/subscriptions","organizations_url":"https://api.github.com/users/ccoupe/orgs","repos_url":"https://api.github.com/users/ccoupe/repos","events_url":"https://api.github.com/users/ccoupe/events{/privacy}","received_events_url":"https://api.github.com/users/ccoupe/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/Shoes3/shoes3/milestones/6","html_url":"https://github.com/Shoes3/shoes3/milestones/%203.3.0","labels_url":"https://api.github.com/repos/Shoes3/shoes3/milestones/6/labels","id":1302194,"number":6,"title":" 3.3.0","description":"This is the big one, which we probably will creep up on in our bottom up manner.  GTK3 only and ruby 2.2.+ plus what ever kitchen sink ideas we have.","creator":{"login":"ccoupe","id":222691,"avatar_url":"https://avatars.githubusercontent.com/u/222691?v=3","gravatar_id":"","url":"https://api.github.com/users/ccoupe","html_url":"https://github.com/ccoupe","followers_url":"https://api.github.com/users/ccoupe/followers","following_url":"https://api.github.com/users/ccoupe/following{/other_user}","gists_url":"https://api.github.com/users/ccoupe/gists{/gist_id}","starred_url":"https://api.github.com/users/ccoupe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccoupe/subscriptions","organizations_url":"https://api.github.com/users/ccoupe/orgs","repos_url":"https://api.github.com/users/ccoupe/repos","events_url":"https://api.github.com/users/ccoupe/events{/privacy}","received_events_url":"https://api.github.com/users/ccoupe/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":7,"state":"open","created_at":"2015-09-12T07:04:53Z","updated_at":"2015-12-15T06:47:59Z","due_on":null,"closed_at":null},"comments":89,"created_at":"2015-02-04T08:01:16Z","updated_at":"2015-12-15T22:09:14Z","closed_at":null,"body":"Cairo supports SVG rendering through libRSVG.\r\n\r\nhttps://wiki.gnome.org/action/show/Projects/LibRsvg?action=show&redirect=LibRsvg\r\n\r\nFrom http://cairographics.org/examples/\r\n* librsvg is a SVG rendering library supporting a large subset of SVG 1.1.\r\n* Mozilla is using cairo to render SVG content as of Firefox 1.5 and 2.0. As of Firefox 3.0 it uses cairo for rendering all content and UI.\r\n"},"comment":{"url":"https://api.github.com/repos/Shoes3/shoes3/issues/comments/164913284","html_url":"https://github.com/Shoes3/shoes3/issues/54#issuecomment-164913284","issue_url":"https://api.github.com/repos/Shoes3/shoes3/issues/54","id":164913284,"user":{"login":"passenger94","id":10730930,"avatar_url":"https://avatars.githubusercontent.com/u/10730930?v=3","gravatar_id":"","url":"https://api.github.com/users/passenger94","html_url":"https://github.com/passenger94","followers_url":"https://api.github.com/users/passenger94/followers","following_url":"https://api.github.com/users/passenger94/following{/other_user}","gists_url":"https://api.github.com/users/passenger94/gists{/gist_id}","starred_url":"https://api.github.com/users/passenger94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/passenger94/subscriptions","organizations_url":"https://api.github.com/users/passenger94/orgs","repos_url":"https://api.github.com/users/passenger94/repos","events_url":"https://api.github.com/users/passenger94/events{/privacy}","received_events_url":"https://api.github.com/users/passenger94/received_events","type":"User","site_admin":false},"created_at":"2015-12-15T22:09:14Z","updated_at":"2015-12-15T22:09:14Z","body":"a proposal fix for **shoes_svg_draw_surface**\r\nfixed aspect ratio calculus\r\nNeeds testing\r\n```c\r\nstatic void\r\nshoes_svg_draw_surface(cairo_t *cr, shoes_svg *self_t, shoes_place *place, cairo_surface_t *surf, int imw, int imh)\r\n{\r\n  shoes_svghandle *svghan;\r\n  Data_Get_Struct(self_t->svghandle, shoes_svghandle, svghan);\r\n  double outw = imw * 1.0; // slot width\r\n  double outh = imh * 1.0; // slot height\r\n  double scalew = outw / svghan->svghdim.width;\r\n  double scaleh = outh / svghan->svghdim.height;\r\n  \r\n  double ratio = MIN(outw / svghan->svghdim.width, outh / svghan->svghdim.height);\r\n  \r\n  if (svghan->aspect != 1.0)\r\n  {\r\n    scalew = scaleh = ratio;\r\n  }\r\n  \r\n  if (svghan->subid == NULL)\r\n  {\r\n    // Full svg contents\r\n//    if (place->iw != imw || place->ih != imh)                           // What's the use of this ?\r\n//      cairo_scale(cr, (place->iw * 1.) / imw, (place->ih * 1.) / imh);  //\r\n    cairo_scale(cr, scalew, scaleh);\r\n    cairo_translate(cr, place->ix + place->dx, place->iy + place->dy);\r\n    cairo_set_source_surface(cr, surf, 0., 0.);\r\n    rsvg_handle_render_cairo_sub(svghan->handle, cr, svghan->subid);\r\n    self_t->place = *place;\r\n  }\r\n  else \r\n  {\r\n    cairo_scale(cr, scalew, scaleh);\r\n    cairo_translate(cr, place->ix + place->dx - svghan->svghpos.x, place->iy + place->dy - svghan->svghpos.y);\r\n    cairo_set_source_surface(cr, surf, 0., 0.);\r\n    rsvg_handle_render_cairo_sub(svghan->handle, cr, svghan->subid);\r\n    self_t->place = *place;\r\n  }\r\n  printf(\"surface\\n\");\r\n}\r\n```"}}