{"action":"closed","issue":{"url":"https://api.github.com/repos/ocornut/imgui/issues/232","labels_url":"https://api.github.com/repos/ocornut/imgui/issues/232/labels{/name}","comments_url":"https://api.github.com/repos/ocornut/imgui/issues/232/comments","events_url":"https://api.github.com/repos/ocornut/imgui/issues/232/events","html_url":"https://github.com/ocornut/imgui/issues/232","id":79363244,"number":232,"title":"Using Icon Fonts in current Font","user":{"login":"Pagghiu","id":5406873,"avatar_url":"https://avatars.githubusercontent.com/u/5406873?v=3","gravatar_id":"","url":"https://api.github.com/users/Pagghiu","html_url":"https://github.com/Pagghiu","followers_url":"https://api.github.com/users/Pagghiu/followers","following_url":"https://api.github.com/users/Pagghiu/following{/other_user}","gists_url":"https://api.github.com/users/Pagghiu/gists{/gist_id}","starred_url":"https://api.github.com/users/Pagghiu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pagghiu/subscriptions","organizations_url":"https://api.github.com/users/Pagghiu/orgs","repos_url":"https://api.github.com/users/Pagghiu/repos","events_url":"https://api.github.com/users/Pagghiu/events{/privacy}","received_events_url":"https://api.github.com/users/Pagghiu/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ocornut/imgui/labels/font","name":"font","color":"c7def8"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-05-22T08:56:50Z","updated_at":"2015-07-15T14:01:36Z","closed_at":"2015-07-15T14:01:36Z","body":"I've tried loading some icon fonts and it works great for button icons etc.\r\nAnyway if you want to make a button (or other control) with an Icon followed by some text, you cannot do it easily.\r\nThe current ImGui::Button() call that assumes a single font for the label, unless you bake your ttf characters into the icon font (or the opposite).\r\nMy opinion is that for practical use it should be possible to map those icon fonts into some glyph range of current font (not a new one).\r\nI've not gone in the details of the source code generating the glyphs so I'm not sure of the implications and/or difficulty.\r\nJust as an idea, icon fonts could be used to create the vector graphics for new ui/graphics theme like described in #184 without the need of bitmaps (that will not scale easily on higher DPI displays) or fancy SVG drawings (that requires an SVG parser/renderer etc).\r\n\r\nComments? \r\n\r\n![fontawesome](https://cloud.githubusercontent.com/assets/5406873/7767092/f6748680-006f-11e5-9775-48894e1a7a27.png)"}}