{"action":"created","issue":{"url":"https://api.github.com/repos/Kozea/CairoSVG/issues/71","labels_url":"https://api.github.com/repos/Kozea/CairoSVG/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/Kozea/CairoSVG/issues/71/comments","events_url":"https://api.github.com/repos/Kozea/CairoSVG/issues/71/events","html_url":"https://github.com/Kozea/CairoSVG/issues/71","id":96418760,"number":71,"title":"svg text rendered improperly (way too big)","user":{"login":"timeisapear","id":4983212,"avatar_url":"https://avatars.githubusercontent.com/u/4983212?v=3","gravatar_id":"","url":"https://api.github.com/users/timeisapear","html_url":"https://github.com/timeisapear","followers_url":"https://api.github.com/users/timeisapear/followers","following_url":"https://api.github.com/users/timeisapear/following{/other_user}","gists_url":"https://api.github.com/users/timeisapear/gists{/gist_id}","starred_url":"https://api.github.com/users/timeisapear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timeisapear/subscriptions","organizations_url":"https://api.github.com/users/timeisapear/orgs","repos_url":"https://api.github.com/users/timeisapear/repos","events_url":"https://api.github.com/users/timeisapear/events{/privacy}","received_events_url":"https://api.github.com/users/timeisapear/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-21T21:17:58Z","updated_at":"2015-07-23T09:13:55Z","closed_at":null,"body":"When rendering a simple axis label with numerical values, any values enclosed in `<text></text>` tags are rendered improperly.\r\n\r\nStripped down version of D3 chart, after applying inline styles (needed in weasyprint svg pipeline).\r\n\r\nRenders (incorrectly) using CairoSVG as:\r\n<img width=\"621\" alt=\"screen shot 2015-07-21 at 5 13 52 pm\" src=\"https://cloud.githubusercontent.com/assets/4983212/8812742/f8c41816-2fcb-11e5-8ba7-6463c068af23.png\">\r\n\r\nRenders (correctly) in the browser as: \r\n![screen shot 2015-07-21 at 5 12 14 pm](https://cloud.githubusercontent.com/assets/4983212/8812712/c4b1ebfc-2fcb-11e5-8bb8-e4b632cf47e2.png)\r\n\r\n\r\n```html\r\n<svg width=\"600\" height=\"300\">\r\n    <g transform=\"translate(15,6)\">\r\n        <g class=\"xaxis\" transform=\"translate(0,70)\">\r\n            <g class=\"tick major\" style=\"opacity: 1;\" transform=\"translate(0,0)\">\r\n                <line y2=\"-10\" x2=\"0\" fill=\"none\" stroke=\"#999999\" shape-rendering=\"crispEdges\"></line>\r\n            </g>\r\n            <g class=\"tick major\" style=\"opacity: 1;\" transform=\"translate(60.64680746308627,0)\">\r\n                <line y2=\"-10\" x2=\"0\" fill=\"none\" stroke=\"#999999\" shape-rendering=\"crispEdges\"></line>\r\n            </g>\r\n            <g class=\"tick major\" style=\"opacity: 1;\" transform=\"translate(121.29361492617254,0)\">\r\n                <line y2=\"-10\" x2=\"0\" fill=\"none\" stroke=\"#999999\" shape-rendering=\"crispEdges\"></line>\r\n            </g>\r\n            <g class=\"tick major\" style=\"opacity: 1;\" transform=\"translate(179.41347207829688,0)\">\r\n                <line y2=\"-10\" x2=\"0\" fill=\"none\" stroke=\"#999999\" shape-rendering=\"crispEdges\"></line>\r\n            </g>\r\n            <g class=\"tick major\" style=\"opacity: 1;\" transform=\"translate(240.06027954138315,0)\">\r\n                <line y2=\"-10\" x2=\"0\" fill=\"none\" stroke=\"#999999\" shape-rendering=\"crispEdges\"></line>\r\n            </g>\r\n            <g class=\"tick major\" style=\"opacity: 1;\" transform=\"translate(300.70708700446943,0)\">\r\n                <line y2=\"-10\" x2=\"0\" fill=\"none\" stroke=\"#999999\" shape-rendering=\"crispEdges\"></line>\r\n            </g>\r\n            <g class=\"tick major\" style=\"opacity: 1;\" transform=\"translate(361.3538944675557,0)\">\r\n                <line y2=\"-10\" x2=\"0\" fill=\"none\" stroke=\"#999999\" shape-rendering=\"crispEdges\"></line>\r\n                <rect width=\"60.64680746308627\" y=\"-70\" height=\"70\" class=\"bar-today\" fill=\"#999999\" opacity=\"0.4\" shape-rendering=\"crispEdges\"></rect>\r\n            </g>\r\n            <path class=\"domain\" d=\"M0,-10V0H422V-10\" fill=\"none\" stroke=\"#999999\" shape-rendering=\"crispEdges\"></path>\r\n        </g>\r\n        <g transform=\"translate(422,0)\">\r\n            <g class=\"tick major\" transform=\"translate(0,70)\">\r\n                <text style=\"font-size:12px; font-family:'DIN Light', sans-serif;\">420</text>\r\n            </g>\r\n            <g transform=\"translate(0,0)\">\r\n                <text style=\"font-size:12px; font-family:'DIN Light', sans-serif; \">600</text>\r\n            </g>\r\n            <path class=\"domain\" d=\"M6,0H0V70H6\" fill=\"none\" stroke=\"#999999\" shape-rendering=\"crispEdges\"></path>\r\n        </g>\r\n    </g>\r\n</svg>\r\n```"},"comment":{"url":"https://api.github.com/repos/Kozea/CairoSVG/issues/comments/124029889","html_url":"https://github.com/Kozea/CairoSVG/issues/71#issuecomment-124029889","issue_url":"https://api.github.com/repos/Kozea/CairoSVG/issues/71","id":124029889,"user":{"login":"liZe","id":952243,"avatar_url":"https://avatars.githubusercontent.com/u/952243?v=3","gravatar_id":"","url":"https://api.github.com/users/liZe","html_url":"https://github.com/liZe","followers_url":"https://api.github.com/users/liZe/followers","following_url":"https://api.github.com/users/liZe/following{/other_user}","gists_url":"https://api.github.com/users/liZe/gists{/gist_id}","starred_url":"https://api.github.com/users/liZe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liZe/subscriptions","organizations_url":"https://api.github.com/users/liZe/orgs","repos_url":"https://api.github.com/users/liZe/repos","events_url":"https://api.github.com/users/liZe/events{/privacy}","received_events_url":"https://api.github.com/users/liZe/received_events","type":"User","site_admin":false},"created_at":"2015-07-23T09:13:55Z","updated_at":"2015-07-23T09:13:55Z","body":"Thanks for reporting.\r\n\r\nI can't reproduce the bug, the image is rendered correctly for me. This bug looks like an odd bug in Pango or Cairo we had seen with WeasyPrint on OSX.\r\n\r\nWhat OS are you using, and if you're on OSX could you try on another OS please? I'll try to find the bug that was reported on WeasyPrint and see if there's something in it that can help you to solve the problem."}}