{"action":"created","issue":{"url":"https://api.github.com/repos/ocornut/imgui/issues/102","labels_url":"https://api.github.com/repos/ocornut/imgui/issues/102/labels{/name}","comments_url":"https://api.github.com/repos/ocornut/imgui/issues/102/comments","events_url":"https://api.github.com/repos/ocornut/imgui/issues/102/events","html_url":"https://github.com/ocornut/imgui/issues/102","id":53031060,"number":102,"title":"How to load txt-based .fnt and .ttf files","user":{"login":"Flix01","id":9608982,"avatar_url":"https://avatars.githubusercontent.com/u/9608982?v=3","gravatar_id":"","url":"https://api.github.com/users/Flix01","html_url":"https://github.com/Flix01","followers_url":"https://api.github.com/users/Flix01/followers","following_url":"https://api.github.com/users/Flix01/following{/other_user}","gists_url":"https://api.github.com/users/Flix01/gists{/gist_id}","starred_url":"https://api.github.com/users/Flix01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Flix01/subscriptions","organizations_url":"https://api.github.com/users/Flix01/orgs","repos_url":"https://api.github.com/users/Flix01/repos","events_url":"https://api.github.com/users/Flix01/events{/privacy}","received_events_url":"https://api.github.com/users/Flix01/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-12-29T10:08:26Z","updated_at":"2015-01-05T12:34:36Z","closed_at":null,"body":"In the weekend I made this imgui \"extension\", mainly to allow imgui users to load .fnt files in \"text\" format (actually it should autodetect if the .fnt is \"text\" or \"binary\" during the loading phase).\r\nUsing the \"text\" .fnt format can be a useful way to improve code portability by solving endianess related problems (please see https://github.com/ocornut/imgui/issues/81).\r\n\r\nAs an extra I've added an optional preprocessor definition that can be used, together with <I>stb_truetype.h</I>, to load .ttf files (it's experimental, it was not my main concern, but I found out that I could reuse a lot of the code I had just written and then I made it).\r\n\r\nHere is the gist with code (with usage instructions in the header file): https://gist.github.com/Flix01/13374fabd73214f82362\r\n"},"comment":{"url":"https://api.github.com/repos/ocornut/imgui/issues/comments/68702285","html_url":"https://github.com/ocornut/imgui/issues/102#issuecomment-68702285","issue_url":"https://api.github.com/repos/ocornut/imgui/issues/102","id":68702285,"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":"2015-01-05T12:34:36Z","updated_at":"2015-01-05T12:34:36Z","body":"Looking at it now. I'll be using the new stb_rect_pack.h API and subsamping. \r\n\r\nWhat is the purpose of bool allowNonSquaredBitmap=false  in your code? Is this even an advantage or requirement to have square textures?"}}