{"action":"created","issue":{"url":"https://api.github.com/repos/robert-strandh/McCLIM/issues/89","repository_url":"https://api.github.com/repos/robert-strandh/McCLIM","labels_url":"https://api.github.com/repos/robert-strandh/McCLIM/issues/89/labels{/name}","comments_url":"https://api.github.com/repos/robert-strandh/McCLIM/issues/89/comments","events_url":"https://api.github.com/repos/robert-strandh/McCLIM/issues/89/events","html_url":"https://github.com/robert-strandh/McCLIM/pull/89","id":177653026,"number":89,"title":"Improve autoconfiguration of TTF fonts","user":{"login":"deterministic-arts","id":1991432,"avatar_url":"https://avatars.githubusercontent.com/u/1991432?v=3","gravatar_id":"","url":"https://api.github.com/users/deterministic-arts","html_url":"https://github.com/deterministic-arts","followers_url":"https://api.github.com/users/deterministic-arts/followers","following_url":"https://api.github.com/users/deterministic-arts/following{/other_user}","gists_url":"https://api.github.com/users/deterministic-arts/gists{/gist_id}","starred_url":"https://api.github.com/users/deterministic-arts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deterministic-arts/subscriptions","organizations_url":"https://api.github.com/users/deterministic-arts/orgs","repos_url":"https://api.github.com/users/deterministic-arts/repos","events_url":"https://api.github.com/users/deterministic-arts/events{/privacy}","received_events_url":"https://api.github.com/users/deterministic-arts/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-18T13:52:20Z","updated_at":"2016-09-18T14:02:27Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/robert-strandh/McCLIM/pulls/89","html_url":"https://github.com/robert-strandh/McCLIM/pull/89","diff_url":"https://github.com/robert-strandh/McCLIM/pull/89.diff","patch_url":"https://github.com/robert-strandh/McCLIM/pull/89.patch"},"body":"Out of the box, the current McCLIM seems to have some problems getting the truetype font configuration right, at least on Mac OS/X (10.11.6, El Capitan). This PR tries to improve on the situation slightly.\r\n\r\n1. In `clim-clx::text-style-to-X-font`, the code examines the resolved pathname; if it is already absolute, it doesn't even try to `merge-pathname` it against `*truetype-font-path*`.\r\n2. In `mcclim-truetype::find-fontconfig-font`, we use `uiop:run-program` now instead of the deprecated `asdf:run-shell-command`. Also, we try to use a fully qualified path for the `fc-match` program. I am not sure why that would be, but neither `run-shell-program` nor `run-program` (regardless of whether `:force-shell` is true) seems to be able to run `fc-match` otherwise.\r\n\r\nI am not entirely sure, whether all of these changes are appropriate for all machines; in particular, I do not currently have access to Linux desktop machine, so I cannot test these changes on configurations other than my Mac right now. Feel free to request changes, if this PR breaks other environments. "},"comment":{"url":"https://api.github.com/repos/robert-strandh/McCLIM/issues/comments/247849435","html_url":"https://github.com/robert-strandh/McCLIM/pull/89#issuecomment-247849435","issue_url":"https://api.github.com/repos/robert-strandh/McCLIM/issues/89","id":247849435,"user":{"login":"deterministic-arts","id":1991432,"avatar_url":"https://avatars.githubusercontent.com/u/1991432?v=3","gravatar_id":"","url":"https://api.github.com/users/deterministic-arts","html_url":"https://github.com/deterministic-arts","followers_url":"https://api.github.com/users/deterministic-arts/followers","following_url":"https://api.github.com/users/deterministic-arts/following{/other_user}","gists_url":"https://api.github.com/users/deterministic-arts/gists{/gist_id}","starred_url":"https://api.github.com/users/deterministic-arts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deterministic-arts/subscriptions","organizations_url":"https://api.github.com/users/deterministic-arts/orgs","repos_url":"https://api.github.com/users/deterministic-arts/repos","events_url":"https://api.github.com/users/deterministic-arts/events{/privacy}","received_events_url":"https://api.github.com/users/deterministic-arts/received_events","type":"User","site_admin":false},"created_at":"2016-09-18T14:02:27Z","updated_at":"2016-09-18T14:02:27Z","body":"Hm. Should have scrolled though the issues list first. This could be related to [issue 75](https://github.com/robert-strandh/McCLIM/issues/75)"}}
{"actor":{"display_login":"deterministic-arts"}}