{"action":"created","issue":{"url":"https://api.github.com/repos/asciidoctor/asciidoctor-pdf/issues/619","repository_url":"https://api.github.com/repos/asciidoctor/asciidoctor-pdf","labels_url":"https://api.github.com/repos/asciidoctor/asciidoctor-pdf/issues/619/labels{/name}","comments_url":"https://api.github.com/repos/asciidoctor/asciidoctor-pdf/issues/619/comments","events_url":"https://api.github.com/repos/asciidoctor/asciidoctor-pdf/issues/619/events","html_url":"https://github.com/asciidoctor/asciidoctor-pdf/issues/619","id":182005420,"number":619,"title":"Nested unordered lists crash the renderer when a non-default font is in use","user":{"login":"tkfu","id":4501758,"avatar_url":"https://avatars.githubusercontent.com/u/4501758?v=3","gravatar_id":"","url":"https://api.github.com/users/tkfu","html_url":"https://github.com/tkfu","followers_url":"https://api.github.com/users/tkfu/followers","following_url":"https://api.github.com/users/tkfu/following{/other_user}","gists_url":"https://api.github.com/users/tkfu/gists{/gist_id}","starred_url":"https://api.github.com/users/tkfu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkfu/subscriptions","organizations_url":"https://api.github.com/users/tkfu/orgs","repos_url":"https://api.github.com/users/tkfu/repos","events_url":"https://api.github.com/users/tkfu/events{/privacy}","received_events_url":"https://api.github.com/users/tkfu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-10T12:43:45Z","updated_at":"2016-10-10T15:53:25Z","closed_at":null,"body":"If I create an asciidoc file that has an unordered list in it with nested items, it yields the following error when trying to render it using my custom stylesheet:\r\n\r\n```\r\n$ asciidoctor-pdf -a pdf-style=my-theme.yml -a pdf-fontsdir=fonts simple.adoc \r\nPrawn::Errors::CannotFit\r\n  Use --trace for backtrace\r\n```\r\n\r\nThis appears to happen when the font is missing the bullet glyphs that asciidoctor uses for specific nested levels.\r\n\r\nThe simplest examples of failing files I can produce are as follows:\r\n\r\nModify default-theme.yml to add Roboto: \r\n\r\n(note: I chose Roboto arbitrarily; the one I'm actually trying to use isn't freely licensed. I've reproduced this with a number of different fonts, however. The difference is in how many of the glyphs the font has. Helvetica Neue, for example, works up until the 2nd nesting level, but fails beyond that.)\r\n\r\n**my-theme.yml**\r\n```\r\nfont:\r\n  catalog:\r\n    Roboto:\r\n      normal: Roboto-Light.ttf\r\n      bold: Roboto-Bold.ttf\r\n      italic: Roboto-LightItalic.ttf\r\n      bold_italic: Roboto-BoldItalic.ttf\r\n[...]\r\nbase:\r\n[...]\r\n  font_family: Roboto\r\n```\r\n\r\n**simple.adoc**\r\n```\r\n= Test Document\r\n\r\ntest\r\n\r\n== Heading 1\r\n\r\n* item\r\n** item\r\n*** item\r\n```\r\n\r\nIf I remove the fallback font from the stylesheet, the document will render, but without bullets for the 2nd and 3rd levels of nesting."},"comment":{"url":"https://api.github.com/repos/asciidoctor/asciidoctor-pdf/issues/comments/252662874","html_url":"https://github.com/asciidoctor/asciidoctor-pdf/issues/619#issuecomment-252662874","issue_url":"https://api.github.com/repos/asciidoctor/asciidoctor-pdf/issues/619","id":252662874,"user":{"login":"habamax","id":234774,"avatar_url":"https://avatars.githubusercontent.com/u/234774?v=3","gravatar_id":"","url":"https://api.github.com/users/habamax","html_url":"https://github.com/habamax","followers_url":"https://api.github.com/users/habamax/followers","following_url":"https://api.github.com/users/habamax/following{/other_user}","gists_url":"https://api.github.com/users/habamax/gists{/gist_id}","starred_url":"https://api.github.com/users/habamax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/habamax/subscriptions","organizations_url":"https://api.github.com/users/habamax/orgs","repos_url":"https://api.github.com/users/habamax/repos","events_url":"https://api.github.com/users/habamax/events{/privacy}","received_events_url":"https://api.github.com/users/habamax/received_events","type":"User","site_admin":false},"created_at":"2016-10-10T15:53:25Z","updated_at":"2016-10-10T15:53:25Z","body":"you have to use fallback font to avoid that problem\r\n\r\nI for myself copied M+ fallback font which default theme uses, added to the theme and this error had gone away."}}
{"actor":{"display_login":"habamax"}}