{"action":"created","issue":{"url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/1888","repository_url":"https://api.github.com/repos/Hammerspoon/hammerspoon","labels_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/1888/labels{/name}","comments_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/1888/comments","events_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/1888/events","html_url":"https://github.com/Hammerspoon/hammerspoon/issues/1888","id":336270210,"node_id":"MDU6SXNzdWUzMzYyNzAyMTA=","number":1888,"title":"Font appears in hs.styledtext but not Font Book?","user":{"login":"latenitefilms","id":22286696,"node_id":"MDQ6VXNlcjIyMjg2Njk2","avatar_url":"https://avatars2.githubusercontent.com/u/22286696?v=4","gravatar_id":"","url":"https://api.github.com/users/latenitefilms","html_url":"https://github.com/latenitefilms","followers_url":"https://api.github.com/users/latenitefilms/followers","following_url":"https://api.github.com/users/latenitefilms/following{/other_user}","gists_url":"https://api.github.com/users/latenitefilms/gists{/gist_id}","starred_url":"https://api.github.com/users/latenitefilms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/latenitefilms/subscriptions","organizations_url":"https://api.github.com/users/latenitefilms/orgs","repos_url":"https://api.github.com/users/latenitefilms/repos","events_url":"https://api.github.com/users/latenitefilms/events{/privacy}","received_events_url":"https://api.github.com/users/latenitefilms/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-27T15:06:00Z","updated_at":"2018-06-28T15:22:33Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"I'm trying to work out why \"Myriad Pro Semibold\" appears in `hs.styledtext()`, but not in the macOS Font Book?\r\n\r\nAny ideas @asmagill ?\r\n\r\n```lua\r\n> hs.styledtext.fontInfo(\"Myriad Pro\")\r\nascender           9.7500197589397\r\nboundingRect       h=15.886 w=17.667 x=-2.093 y=-3.25 \r\ncapHeight          8.762\r\ndescender          -3.2500065863132\r\ndisplayName        Myriad Pro Semibold\r\nfamilyName         Myriad Pro\r\nfixedPitch         false\r\nfontName           MyriadPro-Semibold\r\nitalicAngle        0.0\r\nleading            2.6000052690506\r\nmaximumAdvancement h=0.0 w=18.473 \r\nnumberOfGlyphs     852\r\npointSize          13.0\r\nunderlinePosition  -0.975\r\nunderlineThickness 0.65\r\nxHeight            6.292\r\n```"},"comment":{"url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/comments/401072812","html_url":"https://github.com/Hammerspoon/hammerspoon/issues/1888#issuecomment-401072812","issue_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/1888","id":401072812,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMTA3MjgxMg==","user":{"login":"latenitefilms","id":22286696,"node_id":"MDQ6VXNlcjIyMjg2Njk2","avatar_url":"https://avatars2.githubusercontent.com/u/22286696?v=4","gravatar_id":"","url":"https://api.github.com/users/latenitefilms","html_url":"https://github.com/latenitefilms","followers_url":"https://api.github.com/users/latenitefilms/followers","following_url":"https://api.github.com/users/latenitefilms/following{/other_user}","gists_url":"https://api.github.com/users/latenitefilms/gists{/gist_id}","starred_url":"https://api.github.com/users/latenitefilms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/latenitefilms/subscriptions","organizations_url":"https://api.github.com/users/latenitefilms/orgs","repos_url":"https://api.github.com/users/latenitefilms/repos","events_url":"https://api.github.com/users/latenitefilms/events{/privacy}","received_events_url":"https://api.github.com/users/latenitefilms/received_events","type":"User","site_admin":false},"created_at":"2018-06-28T15:22:33Z","updated_at":"2018-06-28T15:22:33Z","author_association":"CONTRIBUTOR","body":"@asmagill - As usual, I think you might be onto something!\r\n\r\nTo clarify:\r\n\r\n- I do actually have \"Myriad Pro - Regular\" on my machine, but it's currently disabled.\r\n- On TextEdit, \"Myriad Pro\" appears in the Font Family, but the only option in the Typeface is \"Semibold\".\r\n- In Final Cut Pro, \"Myriad Pro\" doesn't appear in the Font Family dropdown.\r\n\r\nBelow is the Console output & some screenshots.\r\n\r\nI'm guessing maybe Final Cut Pro ignore Myriad Pro because it doesn't have a \"regular\" Typeface?\r\n\r\n```lua\r\n> hs.inspect(hs.styledtext.convertFont(\"Myriad Pro\", false))\r\n{\r\n  __luaSkinType = \"NSFont\",\r\n  name = \"MyriadPro-Semibold\",\r\n  size = 13.0\r\n}\r\n\r\n> hs.inspect(hs.styledtext.convertFont(\"Myriad Pro\", true))\r\n{\r\n  __luaSkinType = \"NSFont\",\r\n  name = \"MyriadPro-Semibold\",\r\n  size = 13.0\r\n}\r\n\r\n> hs.styledtext.fontInfo(\"Myriad Pro\")\r\nascender           9.7500197589397\r\nboundingRect       h=15.886 w=17.667 x=-2.093 y=-3.25 \r\ncapHeight          8.762\r\ndescender          -3.2500065863132\r\ndisplayName        Myriad Pro Semibold\r\nfamilyName         Myriad Pro\r\nfixedPitch         false\r\nfontName           MyriadPro-Semibold\r\nitalicAngle        0.0\r\nleading            2.6000052690506\r\nmaximumAdvancement h=0.0 w=18.473 \r\nnumberOfGlyphs     852\r\npointSize          13.0\r\nunderlinePosition  -0.975\r\nunderlineThickness 0.65\r\nxHeight            6.292\r\n\r\n\r\n> hs.styledtext.fontInfo(\"MyriadPro-Semibold\")\r\nascender           9.7500197589397\r\nboundingRect       h=15.886 w=17.667 x=-2.093 y=-3.25 \r\ncapHeight          8.762\r\ndescender          -3.2500065863132\r\ndisplayName        Myriad Pro Semibold\r\nfamilyName         Myriad Pro\r\nfixedPitch         false\r\nfontName           MyriadPro-Semibold\r\nitalicAngle        0.0\r\nleading            2.6000052690506\r\nmaximumAdvancement h=0.0 w=18.473 \r\nnumberOfGlyphs     852\r\npointSize          13.0\r\nunderlinePosition  -0.975\r\nunderlineThickness 0.65\r\nxHeight            6.292\r\n\r\n\r\n> hs.inspect(hs.styledtext.convertFont(\"MyriadPro-Semibold\", false))\r\n{\r\n  __luaSkinType = \"NSFont\",\r\n  name = \"MyriadPro-Semibold\",\r\n  size = 13.0\r\n}\r\n\r\n> hs.inspect(hs.styledtext.convertFont(\"MyriadPro-Semibold\", true))\r\n{\r\n  __luaSkinType = \"NSFont\",\r\n  name = \"MyriadPro-Semibold\",\r\n  size = 13.0\r\n}\r\n```\r\n\r\n<img width=\"433\" alt=\"screen shot 2018-06-28 at 9 31 17 pm\" src=\"https://user-images.githubusercontent.com/22286696/42043760-9336fc08-7b3a-11e8-8e66-2f55d3ff64ee.png\">\r\n<img width=\"662\" alt=\"screen shot 2018-06-28 at 9 30 48 pm\" src=\"https://user-images.githubusercontent.com/22286696/42043762-936f0846-7b3a-11e8-900b-c89068449532.png\">\r\n<img width=\"1175\" alt=\"screen shot 2018-06-28 at 9 30 39 pm\" src=\"https://user-images.githubusercontent.com/22286696/42043764-93a76006-7b3a-11e8-9288-de7ee1b2ee19.png\">"}}
{"actor":{"display_login":"latenitefilms"}}