{"action":"created","issue":{"url":"https://api.github.com/repos/ocornut/imgui/issues/1498","repository_url":"https://api.github.com/repos/ocornut/imgui","labels_url":"https://api.github.com/repos/ocornut/imgui/issues/1498/labels{/name}","comments_url":"https://api.github.com/repos/ocornut/imgui/issues/1498/comments","events_url":"https://api.github.com/repos/ocornut/imgui/issues/1498/events","html_url":"https://github.com/ocornut/imgui/issues/1498","id":281305168,"number":1498,"title":"Font Anti-Aliasing?","user":{"login":"venixburda","id":34473301,"avatar_url":"https://avatars3.githubusercontent.com/u/34473301?v=4","gravatar_id":"","url":"https://api.github.com/users/venixburda","html_url":"https://github.com/venixburda","followers_url":"https://api.github.com/users/venixburda/followers","following_url":"https://api.github.com/users/venixburda/following{/other_user}","gists_url":"https://api.github.com/users/venixburda/gists{/gist_id}","starred_url":"https://api.github.com/users/venixburda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/venixburda/subscriptions","organizations_url":"https://api.github.com/users/venixburda/orgs","repos_url":"https://api.github.com/users/venixburda/repos","events_url":"https://api.github.com/users/venixburda/events{/privacy}","received_events_url":"https://api.github.com/users/venixburda/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-12-12T09:00:15Z","updated_at":"2017-12-12T10:22:18Z","closed_at":null,"author_association":"NONE","body":"Is there a way to disable Anti-Aliasing (I think is what it's called) on fonts?\r\nIf I render fonts of smaller sizes, they become blurry. I want to make them sharp and from investigation it appears the best way to do that is to disable AA?"},"comment":{"url":"https://api.github.com/repos/ocornut/imgui/issues/comments/351008773","html_url":"https://github.com/ocornut/imgui/issues/1498#issuecomment-351008773","issue_url":"https://api.github.com/repos/ocornut/imgui/issues/1498","id":351008773,"user":{"login":"ocornut","id":8225057,"avatar_url":"https://avatars2.githubusercontent.com/u/8225057?v=4","gravatar_id":"","url":"https://api.github.com/users/ocornut","html_url":"https://github.com/ocornut","followers_url":"https://api.github.com/users/ocornut/followers","following_url":"https://api.github.com/users/ocornut/following{/other_user}","gists_url":"https://api.github.com/users/ocornut/gists{/gist_id}","starred_url":"https://api.github.com/users/ocornut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ocornut/subscriptions","organizations_url":"https://api.github.com/users/ocornut/orgs","repos_url":"https://api.github.com/users/ocornut/repos","events_url":"https://api.github.com/users/ocornut/events{/privacy}","received_events_url":"https://api.github.com/users/ocornut/received_events","type":"User","site_admin":false},"created_at":"2017-12-12T10:22:18Z","updated_at":"2017-12-12T10:22:18Z","author_association":"OWNER","body":"It's not an easy problem to solve, there is no magical \"disable AA\".\r\n\r\n1) make sure you read the font documentations and experiment with oversampling.\r\n\r\n2) Dear Imgui uses stb_truetype.h to rasterize fonts (with optional oversampling).\r\nThis technique and implementation are not ideal for fonts rendered at _small sizes_, which may appear a little blurry. There is an implementation of the ImFontAtlas builder using FreeType that you can use:\r\n\r\n   https://github.com/ocornut/imgui_club\r\n\r\nFreeType supports auto-hinting which tends to improve the readability of small fonts.\r\nNote that this code currently creates textures that are unoptimally too large (could be fixed with some work)\r\n"}}
{"actor":{"display_login":"ocornut"}}