{"action":"created","issue":{"url":"https://api.github.com/repos/lualatex/luaotfload/issues/359","repository_url":"https://api.github.com/repos/lualatex/luaotfload","labels_url":"https://api.github.com/repos/lualatex/luaotfload/issues/359/labels{/name}","comments_url":"https://api.github.com/repos/lualatex/luaotfload/issues/359/comments","events_url":"https://api.github.com/repos/lualatex/luaotfload/issues/359/events","html_url":"https://github.com/lualatex/luaotfload/issues/359","id":154852943,"number":359,"title":"filter symlinks to avoid duplicate entries in the database ?","user":{"login":"jfbu","id":2589111,"avatar_url":"https://avatars.githubusercontent.com/u/2589111?v=3","gravatar_id":"","url":"https://api.github.com/users/jfbu","html_url":"https://github.com/jfbu","followers_url":"https://api.github.com/users/jfbu/followers","following_url":"https://api.github.com/users/jfbu/following{/other_user}","gists_url":"https://api.github.com/users/jfbu/gists{/gist_id}","starred_url":"https://api.github.com/users/jfbu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfbu/subscriptions","organizations_url":"https://api.github.com/users/jfbu/orgs","repos_url":"https://api.github.com/users/jfbu/repos","events_url":"https://api.github.com/users/jfbu/events{/privacy}","received_events_url":"https://api.github.com/users/jfbu/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/lualatex/luaotfload/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-14T13:08:32Z","updated_at":"2016-06-18T07:57:15Z","closed_at":"2016-06-16T20:49:36Z","body":"This is both a question and perhaps a suggestion.\r\n\r\nI am on Mac OS X and for reasons unrelated to LuaLaTeX/luaotfload, I needed to add symlinks to my `~/Library/Fonts` to my TeXLive opentype and truetype repertories.\r\n\r\nThen I did `luaotfload-tool -fu -vvv` and it ends up with\r\n```\r\nluaotfload | db : Fonts in the database: 3038\r\nluaotfload | util : Task completed successfully.\r\n```\r\nto be compared to the earlier situation\r\n```\r\nluaotfload | db : Fonts in the database: 1788\r\nluaotfload | util : Task completed successfully.\r\n```\r\n\r\nI checked in the /usr/local/texlive/2016/texmf-var/luatex-cache/generic/names/luaotfload-names.lua.gz and I find there (as expected) entries which point to the same physical location:\r\n\r\n```\r\n   [\"basename\"]=\"texgyretermes-regular.otf\",\r\n   [\"familyname\"]=\"texgyretermes\",\r\n   [\"fontname\"]=\"texgyretermesregular\",\r\n   [\"format\"]=\"otf\",\r\n   [\"fullname\"]=\"texgyretermesregular\",\r\n   [\"fullpath\"]=\"/usr/local/texlive/2016/texmf-dist/fonts/opentype/public/tex-gyre/texgyretermes-regular.otf\",\r\n   [\"index\"]=992,\r\n...\r\n```\r\n\r\nand \r\n\r\n```\r\n   [\"basename\"]=\"texgyretermes-regular.otf\",\r\n   [\"familyname\"]=\"texgyretermes\",\r\n   [\"fontname\"]=\"texgyretermesregular\",\r\n   [\"format\"]=\"otf\",\r\n   [\"fullname\"]=\"texgyretermesregular\",\r\n   [\"fullpath\"]=\"/Users/XXXXX/Library/Fonts/TeXOpenTypeFonts/public/tex-gyre/texgyretermes-regular.otf\",\r\n   [\"index\"]=1616,\r\n...\r\n```\r\n\r\nThe second path is in fact the same as the first, `~/Library/Fonts/TeXOpenTypeFonts` being a symlink.\r\n\r\nMy question is twofold: will this slow-down LuaTeX ? if yes, is there a way during database construction to filter out paths if they point to the same file ? \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/lualatex/luaotfload/issues/comments/226928241","html_url":"https://github.com/lualatex/luaotfload/issues/359#issuecomment-226928241","issue_url":"https://api.github.com/repos/lualatex/luaotfload/issues/359","id":226928241,"user":{"login":"phi-gamma","id":1437713,"avatar_url":"https://avatars.githubusercontent.com/u/1437713?v=3","gravatar_id":"","url":"https://api.github.com/users/phi-gamma","html_url":"https://github.com/phi-gamma","followers_url":"https://api.github.com/users/phi-gamma/followers","following_url":"https://api.github.com/users/phi-gamma/following{/other_user}","gists_url":"https://api.github.com/users/phi-gamma/gists{/gist_id}","starred_url":"https://api.github.com/users/phi-gamma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phi-gamma/subscriptions","organizations_url":"https://api.github.com/users/phi-gamma/orgs","repos_url":"https://api.github.com/users/phi-gamma/repos","events_url":"https://api.github.com/users/phi-gamma/events{/privacy}","received_events_url":"https://api.github.com/users/phi-gamma/received_events","type":"User","site_admin":false},"created_at":"2016-06-18T07:57:15Z","updated_at":"2016-06-18T07:57:15Z","body":"···<date: 2016-06-18, Saturday>···<from: Jean-François B.>···\n\n> Now I get from same set-up (with symlinks in ``$HOME/Library/Fonts`` to TeXLive opentype and truetype repertories):\n> \n>     luaotfload | db : Fonts in the database: 1797\n>     luaotfload | util : Task completed successfully.\n> \n> and not the earlier 3038. Thanks for the added feature !\n\nNo problem, I consider this a bugfix.\n\nBest,\nPhilipp\n\n"}}
{"actor":{"display_login":"phi-gamma"}}