{"action":"opened","issue":{"url":"https://api.github.com/repos/mellinoe/ImGui.NET/issues/77","repository_url":"https://api.github.com/repos/mellinoe/ImGui.NET","labels_url":"https://api.github.com/repos/mellinoe/ImGui.NET/issues/77/labels{/name}","comments_url":"https://api.github.com/repos/mellinoe/ImGui.NET/issues/77/comments","events_url":"https://api.github.com/repos/mellinoe/ImGui.NET/issues/77/events","html_url":"https://github.com/mellinoe/ImGui.NET/issues/77","id":374095159,"node_id":"MDU6SXNzdWUzNzQwOTUxNTk=","number":77,"title":"Font loading from TTF not working in latest beta","user":{"login":"Revolt64","id":42483196,"node_id":"MDQ6VXNlcjQyNDgzMTk2","avatar_url":"https://avatars3.githubusercontent.com/u/42483196?v=4","gravatar_id":"","url":"https://api.github.com/users/Revolt64","html_url":"https://github.com/Revolt64","followers_url":"https://api.github.com/users/Revolt64/followers","following_url":"https://api.github.com/users/Revolt64/following{/other_user}","gists_url":"https://api.github.com/users/Revolt64/gists{/gist_id}","starred_url":"https://api.github.com/users/Revolt64/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Revolt64/subscriptions","organizations_url":"https://api.github.com/users/Revolt64/orgs","repos_url":"https://api.github.com/users/Revolt64/repos","events_url":"https://api.github.com/users/Revolt64/events{/privacy}","received_events_url":"https://api.github.com/users/Revolt64/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-25T19:22:26Z","updated_at":"2018-10-25T19:22:26Z","closed_at":null,"author_association":"NONE","body":"Hey @mellinoe, sorry for piling on the bugs lately!\r\n\r\nI'm using the latest beta of ImGui, and am loading a font via:\r\n\r\n```csharp\r\nImGui.GetIO().Fonts.AddFontFromFileTTF($\"fonts\\\\ComicSansMS.ttf\", 14.0f);\r\n```\r\nUsing comic sans as it's the most obvious to see if the font changed successfully, from a visual perspective. The call to AddDefaultFont() is commented out.\r\n\r\n- Expected outcome: text displayed using the comic sans font.\r\n- Actual outcome: text displayed using the default ImGui font.\r\n\r\nI used the same example as I did in [this bug report](https://github.com/mellinoe/ImGui.NET/issues/76) (your Monogame sample, but using the Nuget packages), with the only change being adding the font, a post build step to copy the fonts to the bin directory and the call to `AddFrontFromFileTTF()`.\r\n\r\nLoading a ttf font worked fine for me before switching to the beta version of ImGui. I've already committed to changing my code to use the new ImGui beta, so I'd prefer to stick with it, as the changes in the beta are great.\r\n\r\n- ImGui version: `1.65.0-beta1`\r\n- MonoGame version: `3.7.0.7`\r\n\r\n[ImGui.NET.SampleProgram.XNA_Font_Issue.zip](https://github.com/mellinoe/ImGui.NET/files/2516394/ImGui.NET.SampleProgram.XNA_Font_Issue.zip)\r\n\r\nThank you"}}
{"actor":{"display_login":"Revolt64"}}