{"action":"created","issue":{"url":"https://api.github.com/repos/littlevgl/lvgl/issues/476","repository_url":"https://api.github.com/repos/littlevgl/lvgl","labels_url":"https://api.github.com/repos/littlevgl/lvgl/issues/476/labels{/name}","comments_url":"https://api.github.com/repos/littlevgl/lvgl/issues/476/comments","events_url":"https://api.github.com/repos/littlevgl/lvgl/issues/476/events","html_url":"https://github.com/littlevgl/lvgl/issues/476","id":373354003,"node_id":"MDU6SXNzdWUzNzMzNTQwMDM=","number":476,"title":"Process for generating lv_font_symbol of custom size","user":{"login":"AloyseTech","id":13847288,"node_id":"MDQ6VXNlcjEzODQ3Mjg4","avatar_url":"https://avatars2.githubusercontent.com/u/13847288?v=4","gravatar_id":"","url":"https://api.github.com/users/AloyseTech","html_url":"https://github.com/AloyseTech","followers_url":"https://api.github.com/users/AloyseTech/followers","following_url":"https://api.github.com/users/AloyseTech/following{/other_user}","gists_url":"https://api.github.com/users/AloyseTech/gists{/gist_id}","starred_url":"https://api.github.com/users/AloyseTech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AloyseTech/subscriptions","organizations_url":"https://api.github.com/users/AloyseTech/orgs","repos_url":"https://api.github.com/users/AloyseTech/repos","events_url":"https://api.github.com/users/AloyseTech/events{/privacy}","received_events_url":"https://api.github.com/users/AloyseTech/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-10-24T08:04:13Z","updated_at":"2018-10-29T12:45:32Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\n\r\nCould you please describe the way you generate the symbol font using the online converter please? I'm unable to make it work with a custom size. The standard font works in 16px.\r\n\r\nHere is what I've done : \r\n1. Use FontAwesome.ttf\r\n2. Range from 61440 to 62190\r\n3. 16px\r\n4. BPP to 1 (will be built-in font)\r\n5. \"Monospace\", \"Scale\" and \"Base Line offset\" left empty\r\n6. List copied from the useful note at the bottom of the page\r\n7. Check \"Convert as built-in font\"\r\n\r\nI successfully got the c file, named lv_font_symbol_16.c, I copy it in my project root folder, next to main. I change the include from \"../lv_misc/lv_fonts.h\" to \"lvgl/lv_misc/lv_fonts.h\".\r\n\r\nIn my main.c file, I add the following code after lv_init()\r\n```\r\n#if USE_LV_FONT_SYMBOL_16 != 0\r\n#if USE_LV_FONT_DEJAVU_16 != 0\r\n\tlv_font_add(&lv_font_symbol_16, &lv_font_dejavu_16);\r\n#else\r\n\tlv_font_add(&lv_font_symbol_16, NULL);\r\n#endif\r\n#endif\r\n```\r\nAnd in lv_conf.h I have : \r\n```\r\n#define USE_LV_FONT_DEJAVU_16         4\r\n#define USE_LV_FONT_SYMBOL_16        4\r\n#define LV_FONT_CUSTOM_DECLARE    LV_FONT_DECLARE(lv_font_dejavu_16)\\\r\n                              LV_FONT_DECLARE(lv_font_symbol_16)\r\n```\r\n\r\nText is working fine but the symbols are not displayed in a label.... I tested with 10px and 20px and it works, so usage should be fine.\r\n\r\nI tried to edit the font source to match the built-in symbol source file, i.e. changing from sparse mode to continuous (rename the get_bitmap and get_width, and set unicode_list to NULL), but with no luck also..."},"comment":{"url":"https://api.github.com/repos/littlevgl/lvgl/issues/comments/433896391","html_url":"https://github.com/littlevgl/lvgl/issues/476#issuecomment-433896391","issue_url":"https://api.github.com/repos/littlevgl/lvgl/issues/476","id":433896391,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMzg5NjM5MQ==","user":{"login":"kisvegabor","id":7599318,"node_id":"MDQ6VXNlcjc1OTkzMTg=","avatar_url":"https://avatars1.githubusercontent.com/u/7599318?v=4","gravatar_id":"","url":"https://api.github.com/users/kisvegabor","html_url":"https://github.com/kisvegabor","followers_url":"https://api.github.com/users/kisvegabor/followers","following_url":"https://api.github.com/users/kisvegabor/following{/other_user}","gists_url":"https://api.github.com/users/kisvegabor/gists{/gist_id}","starred_url":"https://api.github.com/users/kisvegabor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kisvegabor/subscriptions","organizations_url":"https://api.github.com/users/kisvegabor/orgs","repos_url":"https://api.github.com/users/kisvegabor/repos","events_url":"https://api.github.com/users/kisvegabor/events{/privacy}","received_events_url":"https://api.github.com/users/kisvegabor/received_events","type":"User","site_admin":false},"created_at":"2018-10-29T12:45:32Z","updated_at":"2018-10-29T12:45:32Z","author_association":"MEMBER","body":"Great! :)\r\nThank you for the suggestion!"}}
{"actor":{"display_login":"kisvegabor"}}