{"action":"opened","issue":{"url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/13119","repository_url":"https://api.github.com/repos/lionheart/openradar-mirror","labels_url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/13119/labels{/name}","comments_url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/13119/comments","events_url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/13119/events","html_url":"https://github.com/lionheart/openradar-mirror/issues/13119","id":148875946,"number":13119,"title":"15341349: CTFont/NSFont Bridging is broken","user":{"login":"openradar-mirror","id":13605213,"avatar_url":"https://avatars.githubusercontent.com/u/13605213?v=3","gravatar_id":"","url":"https://api.github.com/users/openradar-mirror","html_url":"https://github.com/openradar-mirror","followers_url":"https://api.github.com/users/openradar-mirror/followers","following_url":"https://api.github.com/users/openradar-mirror/following{/other_user}","gists_url":"https://api.github.com/users/openradar-mirror/gists{/gist_id}","starred_url":"https://api.github.com/users/openradar-mirror/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openradar-mirror/subscriptions","organizations_url":"https://api.github.com/users/openradar-mirror/orgs","repos_url":"https://api.github.com/users/openradar-mirror/repos","events_url":"https://api.github.com/users/openradar-mirror/events{/privacy}","received_events_url":"https://api.github.com/users/openradar-mirror/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/lionheart/openradar-mirror/labels/classification:other%20bug","name":"classification:other bug","color":"e11d21"},{"url":"https://api.github.com/repos/lionheart/openradar-mirror/labels/reproducible:always","name":"reproducible:always","color":"5319e7"},{"url":"https://api.github.com/repos/lionheart/openradar-mirror/labels/status:open","name":"status:open","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/lionheart/openradar-mirror/milestones/66","html_url":"https://github.com/lionheart/openradar-mirror/milestones/Mac%20OS%20X","labels_url":"https://api.github.com/repos/lionheart/openradar-mirror/milestones/66/labels","id":1238025,"number":66,"title":"Mac OS X","description":null,"creator":{"login":"openradar-mirror","id":13605213,"avatar_url":"https://avatars.githubusercontent.com/u/13605213?v=3","gravatar_id":"","url":"https://api.github.com/users/openradar-mirror","html_url":"https://github.com/openradar-mirror","followers_url":"https://api.github.com/users/openradar-mirror/followers","following_url":"https://api.github.com/users/openradar-mirror/following{/other_user}","gists_url":"https://api.github.com/users/openradar-mirror/gists{/gist_id}","starred_url":"https://api.github.com/users/openradar-mirror/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openradar-mirror/subscriptions","organizations_url":"https://api.github.com/users/openradar-mirror/orgs","repos_url":"https://api.github.com/users/openradar-mirror/repos","events_url":"https://api.github.com/users/openradar-mirror/events{/privacy}","received_events_url":"https://api.github.com/users/openradar-mirror/received_events","type":"User","site_admin":false},"open_issues":126,"closed_issues":0,"state":"open","created_at":"2015-08-03T10:45:58Z","updated_at":"2016-04-16T18:02:32Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2016-04-16T18:02:32Z","updated_at":"2016-04-16T18:02:32Z","closed_at":null,"body":"#### Description\n\n\"Toll-free bridging\" means that you can cast from one type to another and have it behave as if it were of the other type. This is not the case with NSFont and CTFont, which the documentation claims are bridged.\r\n\r\nTo reproduce:\r\n\r\n/* build with cc test.m -framework Cocoa -o test */\r\n\r\n#include <Cocoa/Cocoa.h>\r\n\r\nint main() {\r\n  CFTypeID ct_font_type_id = CTFontGetTypeID();\r\n  NSLog(@\"CTFontGetTypeID is %lu\", ct_font_type_id);\r\n\r\n  NSFont* font = [NSFont systemFontOfSize:[NSFont systemFontSize]];\r\n  CTFontRef ct_font = (CTFontRef)font;\r\n  CFTypeID type_id = CFGetTypeID(ct_font);\r\n  NSLog(@\"CFGetTypeID for system font is %lu\", type_id);\r\n  assert(type_id == ct_font_type_id);\r\n}\r\n\r\nExpected:\r\n\r\nThe type ids match.\r\n\r\nActual results:\r\n\r\n~/b/ctfont> ./test\r\n2013-10-29 11:07:58.792 test[91007:507] CTFontGetTypeID is 256\r\n2013-10-29 11:07:58.802 test[91007:507] CFGetTypeID for system font is 1\r\nAssertion failed: (type_id == ct_font_type_id), function main, file test.m, line 13.\r\nfish: Job 1, './test' terminated by signal SIGABRT (Abort)\r\n\r\nMac OS X 10.9, 13A603.\r\n\r\nI don't know if this is a regression.\n\n-\nProduct Version: Mac OS X 10.9, 13A603\nCreated: 2013-10-29T15:14:39.475973\nOriginated: 2013-10-29T00:00:00\nOpen Radar Link: http://www.openradar.me/15341349"}}