{"action":"created","issue":{"url":"https://api.github.com/repos/ocornut/imgui/issues/1631","repository_url":"https://api.github.com/repos/ocornut/imgui","labels_url":"https://api.github.com/repos/ocornut/imgui/issues/1631/labels{/name}","comments_url":"https://api.github.com/repos/ocornut/imgui/issues/1631/comments","events_url":"https://api.github.com/repos/ocornut/imgui/issues/1631/events","html_url":"https://github.com/ocornut/imgui/issues/1631","id":298541636,"number":1631,"title":"Crash on loading a font from a file","user":{"login":"onqtam","id":4648169,"avatar_url":"https://avatars3.githubusercontent.com/u/4648169?v=4","gravatar_id":"","url":"https://api.github.com/users/onqtam","html_url":"https://github.com/onqtam","followers_url":"https://api.github.com/users/onqtam/followers","following_url":"https://api.github.com/users/onqtam/following{/other_user}","gists_url":"https://api.github.com/users/onqtam/gists{/gist_id}","starred_url":"https://api.github.com/users/onqtam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onqtam/subscriptions","organizations_url":"https://api.github.com/users/onqtam/orgs","repos_url":"https://api.github.com/users/onqtam/repos","events_url":"https://api.github.com/users/onqtam/events{/privacy}","received_events_url":"https://api.github.com/users/onqtam/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-20T10:28:23Z","updated_at":"2018-02-20T10:50:49Z","closed_at":"2018-02-20T10:50:49Z","author_association":"CONTRIBUTOR","body":"So today I updated imgui (hadn't done that in more than 1 month) and while migrating (now using ```ImGui::CreateContext();``` and etc.) I saw that my program crashes (asserts) on this code:\r\n\r\n```c++\r\n    ImGui::CreateContext();\r\n    ImGui_ImplGlfwGL2_Init(window, true);\r\n\r\n    ImGuiIO& io = ImGui::GetIO();\r\n    io.Fonts->AddFontFromFileTTF(\"D:/rcrl/src/third_party/imgui/extra_fonts/Cousine-Regular.ttf\", 17.f);\r\n```\r\n\r\nThis code used to work but now calling ```ImFileLoadToMemory()``` returns null (returned from ```ImFileOpen()``` which calls ```_wfopen()``` - returns null).\r\n\r\nI'm positive that the path used for opening the file is still correct - nothing else in the project has changed."},"comment":{"url":"https://api.github.com/repos/ocornut/imgui/issues/comments/366939789","html_url":"https://github.com/ocornut/imgui/issues/1631#issuecomment-366939789","issue_url":"https://api.github.com/repos/ocornut/imgui/issues/1631","id":366939789,"user":{"login":"onqtam","id":4648169,"avatar_url":"https://avatars3.githubusercontent.com/u/4648169?v=4","gravatar_id":"","url":"https://api.github.com/users/onqtam","html_url":"https://github.com/onqtam","followers_url":"https://api.github.com/users/onqtam/followers","following_url":"https://api.github.com/users/onqtam/following{/other_user}","gists_url":"https://api.github.com/users/onqtam/gists{/gist_id}","starred_url":"https://api.github.com/users/onqtam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onqtam/subscriptions","organizations_url":"https://api.github.com/users/onqtam/orgs","repos_url":"https://api.github.com/users/onqtam/repos","events_url":"https://api.github.com/users/onqtam/events{/privacy}","received_events_url":"https://api.github.com/users/onqtam/received_events","type":"User","site_admin":false},"created_at":"2018-02-20T10:50:49Z","updated_at":"2018-02-20T10:50:49Z","author_association":"CONTRIBUTOR","body":"embarrassing... thanks!"}}
{"actor":{"display_login":"onqtam"}}