{"action":"created","issue":{"url":"https://api.github.com/repos/ocornut/imgui/issues/618","repository_url":"https://api.github.com/repos/ocornut/imgui","labels_url":"https://api.github.com/repos/ocornut/imgui/issues/618/labels{/name}","comments_url":"https://api.github.com/repos/ocornut/imgui/issues/618/comments","events_url":"https://api.github.com/repos/ocornut/imgui/issues/618/events","html_url":"https://github.com/ocornut/imgui/issues/618","id":151821418,"number":618,"title":"Better fonts rendering / allow to use e.g. FreeType","user":{"login":"Vuhdo","id":7080284,"avatar_url":"https://avatars.githubusercontent.com/u/7080284?v=3","gravatar_id":"","url":"https://api.github.com/users/Vuhdo","html_url":"https://github.com/Vuhdo","followers_url":"https://api.github.com/users/Vuhdo/followers","following_url":"https://api.github.com/users/Vuhdo/following{/other_user}","gists_url":"https://api.github.com/users/Vuhdo/gists{/gist_id}","starred_url":"https://api.github.com/users/Vuhdo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vuhdo/subscriptions","organizations_url":"https://api.github.com/users/Vuhdo/orgs","repos_url":"https://api.github.com/users/Vuhdo/repos","events_url":"https://api.github.com/users/Vuhdo/events{/privacy}","received_events_url":"https://api.github.com/users/Vuhdo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-04-29T08:55:17Z","updated_at":"2016-05-29T16:18:34Z","closed_at":null,"body":"Let me start by saying, Dear ImGui rocks!\r\nIn fact, it's so great that I literally want to use it more than I really need to :)\r\n\r\nThat said, I have some really annoying problem - mediocre text visuals.\r\nStb_truetype, the underlying font rendering library, is simple and convenient, \r\nbut not that great comparing to, say, FreeType's hinting rasterizer. \r\n\r\nProggy font (the built-in one) is crisp, but it's essentially a bitmap font which \r\ndoesn't imply anti-aliased rasterizing.\r\nIt's a fixed-width font which really looks like some 'programmer's art', that\r\nmight be a problem or not (my artists will make fun of me for sure).\r\nMoreover, it contains only basic Latin glyphs which is really a problem in\r\nsome environments (for example, we badly need to render russian texts in our tools).\r\n\r\nI've tried to use a number of popular outline fonts (Droids, Microsoft's SegoeUI, etc.).\r\nThey all look blurry, at least when using lower pixel sizes.\r\nAnd that is understandable, stb_truetype does no hinting, only anti-alising.\r\n\r\nWhat I propose is to add some interface so a user could plug-in his own font rasterizer.\r\nThis way we can more or less easily substitute stb_truetype with FreeType without bloating the library.\r\n\r\nOne minor feature which I think can be easily implemented is to add shadows to texts.\r\nAnother one is to add glyph outlines, but I bet it's too difficult without using an advanced glyph\r\nrasterizer and complicating the library's code.\r\n\r\nWhat do you think?\r\n\r\n-- Alexey"},"comment":{"url":"https://api.github.com/repos/ocornut/imgui/issues/comments/222368936","html_url":"https://github.com/ocornut/imgui/issues/618#issuecomment-222368936","issue_url":"https://api.github.com/repos/ocornut/imgui/issues/618","id":222368936,"user":{"login":"ocornut","id":8225057,"avatar_url":"https://avatars.githubusercontent.com/u/8225057?v=3","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":"2016-05-29T16:18:34Z","updated_at":"2016-05-29T16:18:34Z","body":"@Vuhdo Any news about taking this code out of imgui_draw.cpp so it can be used as a separate extension?"}}
{"actor":{"display_login":"ocornut"}}