{"action":"created","issue":{"url":"https://api.github.com/repos/mtennekes/tmap/issues/42","repository_url":"https://api.github.com/repos/mtennekes/tmap","labels_url":"https://api.github.com/repos/mtennekes/tmap/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/mtennekes/tmap/issues/42/comments","events_url":"https://api.github.com/repos/mtennekes/tmap/issues/42/events","html_url":"https://github.com/mtennekes/tmap/issues/42","id":129481607,"number":42,"title":"Default font","user":{"login":"joelgombin","id":1918735,"avatar_url":"https://avatars.githubusercontent.com/u/1918735?v=3","gravatar_id":"","url":"https://api.github.com/users/joelgombin","html_url":"https://github.com/joelgombin","followers_url":"https://api.github.com/users/joelgombin/followers","following_url":"https://api.github.com/users/joelgombin/following{/other_user}","gists_url":"https://api.github.com/users/joelgombin/gists{/gist_id}","starred_url":"https://api.github.com/users/joelgombin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joelgombin/subscriptions","organizations_url":"https://api.github.com/users/joelgombin/orgs","repos_url":"https://api.github.com/users/joelgombin/repos","events_url":"https://api.github.com/users/joelgombin/events{/privacy}","received_events_url":"https://api.github.com/users/joelgombin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mtennekes/tmap/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-28T15:19:37Z","updated_at":"2016-02-14T18:18:17Z","closed_at":null,"body":"I think the defult value of the `fontfamily` argument to the `tm_layout` function should be whatever default font family the device is using. That's particularly useful in knitr, for example (with somethink like this)\r\n\r\n```r\r\nopts_chunk$set(\r\n               dev = \"cairo_pdf\",\r\n               dev.args = list(family = 'A750-Sans-Light'),\r\n )\r\n```"},"comment":{"url":"https://api.github.com/repos/mtennekes/tmap/issues/comments/183942694","html_url":"https://github.com/mtennekes/tmap/issues/42#issuecomment-183942694","issue_url":"https://api.github.com/repos/mtennekes/tmap/issues/42","id":183942694,"user":{"login":"joelgombin","id":1918735,"avatar_url":"https://avatars.githubusercontent.com/u/1918735?v=3","gravatar_id":"","url":"https://api.github.com/users/joelgombin","html_url":"https://github.com/joelgombin","followers_url":"https://api.github.com/users/joelgombin/followers","following_url":"https://api.github.com/users/joelgombin/following{/other_user}","gists_url":"https://api.github.com/users/joelgombin/gists{/gist_id}","starred_url":"https://api.github.com/users/joelgombin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joelgombin/subscriptions","organizations_url":"https://api.github.com/users/joelgombin/orgs","repos_url":"https://api.github.com/users/joelgombin/repos","events_url":"https://api.github.com/users/joelgombin/events{/privacy}","received_events_url":"https://api.github.com/users/joelgombin/received_events","type":"User","site_admin":false},"created_at":"2016-02-14T18:18:17Z","updated_at":"2016-02-14T18:18:17Z","body":"So I think what happens is that `cairo_pdf` just passes its `family` argument to `par()`. If I understand well your code what you do is use `gpar()`, which in turns uses `par`. So IMHO the easy fix would be to just pass `\"\"` as the default argument to `tm_layout`. What do you think? Does it make sense?"}}