{"action":"created","issue":{"url":"https://api.github.com/repos/openfl/lime/issues/444","labels_url":"https://api.github.com/repos/openfl/lime/issues/444/labels{/name}","comments_url":"https://api.github.com/repos/openfl/lime/issues/444/comments","events_url":"https://api.github.com/repos/openfl/lime/issues/444/events","html_url":"https://github.com/openfl/lime/issues/444","id":78013400,"number":444,"title":"lime_font_get_family_name returning gibberish","user":{"login":"Lerc","id":139390,"avatar_url":"https://avatars.githubusercontent.com/u/139390?v=3","gravatar_id":"","url":"https://api.github.com/users/Lerc","html_url":"https://github.com/Lerc","followers_url":"https://api.github.com/users/Lerc/followers","following_url":"https://api.github.com/users/Lerc/following{/other_user}","gists_url":"https://api.github.com/users/Lerc/gists{/gist_id}","starred_url":"https://api.github.com/users/Lerc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lerc/subscriptions","organizations_url":"https://api.github.com/users/Lerc/orgs","repos_url":"https://api.github.com/users/Lerc/repos","events_url":"https://api.github.com/users/Lerc/events{/privacy}","received_events_url":"https://api.github.com/users/Lerc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-05-19T09:34:51Z","updated_at":"2016-01-29T18:14:53Z","closed_at":null,"body":"This is possibly some form of https://github.com/openfl/lime/issues/256\r\n\r\nI'm experiencing this on lime 2.4.1\r\n\r\nAdding Trace Diagnostics to Font.hx  The font is definitely loading but  lime_font_get_family_name is returning gibberish.\r\n\r\nI get a crash when I first render Text on android and this is where my suspicion is currently aimed.\r\nI can't confirm that this bug is related to the crash when rendering is attempted but it seems a bit fishy given I call up the font by name. \r\n\r\nHere's the output of the traces from the same code on Windows and Android\r\n\r\nWindows Output\r\n```\r\nont.hx:40: Font created with name null\r\nFont.hx:370: font __fromFile img/Blab.ttf returned 21077344\r\nFont.hx:375: lime_font_get_family_name  on 21077344 returned Bank Gothic Medium BT\r\nFont.hx:377: lime_font_get_ascender  on  21077344  returned +1661\r\nFont.hx:379: lime_font_get_descender  on  21077344  returned -483\r\nFont.hx:381: lime_font_get_height  on  21077344  returned 2144\r\nFont.hx:383: lime_font_get_num_glyphs  on  21077344  returned 260\r\nFont.hx:385: lime_font_get_underline_position  on  21077344  returned -241\r\nFont.hx:387: lime_font_get_underline_thickness  on  21077344  returned 143\r\nFont.hx:389: lime_font_get_units_per_em  on  21077344  returned 2048\r\nFont.hx:392: name char 1 is  97 : 61 \r\nFont.hx:392: name char 0 is  66 : 42 \r\nFont.hx:392: name char 2 is  110 : 6E \r\nFont.hx:392: name char 3 is  107 : 6B \r\nFont.hx:392: name char 4 is  32 : 20 \r\nFont.hx:392: name char 5 is  71 : 47 \r\nFont.hx:392: name char 6 is  111 : 6F \r\nFont.hx:392: name char 7 is  116 : 74 \r\nFont.hx:392: name char 8 is  104 : 68 \r\nFont.hx:392: name char 9 is  105 : 69 \r\nFont.hx:392: name char 10 is  99 : 63 \r\nFont.hx:392: name char 11 is  32 : 20 \r\nFont.hx:392: name char 12 is  77 : 4D \r\nFont.hx:392: name char 13 is  101 : 65 \r\nFont.hx:392: name char 14 is  100 : 64 \r\nFont.hx:392: name char 15 is  105 : 69 \r\nFont.hx:392: name char 16 is  117 : 75 \r\nFont.hx:392: name char 17 is  109 : 6D \r\nFont.hx:392: name char 18 is  32 : 20 \r\nFont.hx:392: name char 19 is  66 : 42 \r\nFont.hx:392: name char 20 is  84 : 54 \r\nFont.hx:40: Font created with name null\r\nFont.hx:370: font __fromFile img/Alaska.ttf returned 20315304\r\nFont.hx:375: lime_font_get_family_name  on 20315304 returned Alaska\r\nFont.hx:377: lime_font_get_ascender  on  20315304  returned +2014\r\nFont.hx:379: lime_font_get_descender  on  20315304  returned -512\r\nFont.hx:381: lime_font_get_height  on  20315304  returned 2526\r\nFont.hx:383: lime_font_get_num_glyphs  on  20315304  returned 260\r\nFont.hx:385: lime_font_get_underline_position  on  20315304  returned -460\r\nFont.hx:387: lime_font_get_underline_thickness  on  20315304  returned 104\r\nFont.hx:389: lime_font_get_units_per_em  on  20315304  returned 2048\r\nFont.hx:392: name char 0 is  65 : 41 \r\nFont.hx:392: name char 1 is  108 : 6C \r\nFont.hx:392: name char 2 is  97 : 61 \r\nFont.hx:392: name char 3 is  115 : 73 \r\nFont.hx:392: name char 4 is  107 : 6B \r\nFont.hx:392: name char 5 is  97 : 61 \r\nFont.hx:40: Font created with name null\r\nFont.hx:370: font __fromFile img/Alaska.ttf returned 21109392\r\nFont.hx:375: lime_font_get_family_name  on 21109392 returned Alaska\r\nFont.hx:377: lime_font_get_ascender  on  21109392  returned +2014\r\nFont.hx:379: lime_font_get_descender  on  21109392  returned -512\r\nFont.hx:381: lime_font_get_height  on  21109392  returned 2526\r\nFont.hx:383: lime_font_get_num_glyphs  on  21109392  returned 260\r\nFont.hx:385: lime_font_get_underline_position  on  21109392  returned -460\r\nFont.hx:387: lime_font_get_underline_thickness  on  21109392  returned 104\r\nFont.hx:389: lime_font_get_units_per_em  on  21109392  returned 2048\r\nFont.hx:392: name char 0 is  65 : 41 \r\nFont.hx:392: name char 1 is  108 : 6C \r\nFont.hx:392: name char 2 is  97 : 61 \r\nFont.hx:392: name char 3 is  115 : 73 \r\nFont.hx:392: name char 4 is  107 : 6B \r\nFont.hx:392: name char 5 is  97 : 61 \r\n```\r\n\r\nAndroid Output \r\n```\r\nI/trace   (28317): Font.hx:40: Font created with name null\r\nI/trace   (28317): Font.hx:370: font __fromFile img/Blab.ttf returned 1688800\r\nI/trace   (28317): Font.hx:375: lime_font_get_family_name  on 1688800 returned ????????????????????T????????????????????????????????????9????????????????\r\nI/trace   (28317): Font.hx:377: lime_font_get_ascender  on  1688800  returned +1661\r\nI/trace   (28317): Font.hx:379: lime_font_get_descender  on  1688800  returned -483\r\nI/trace   (28317): Font.hx:381: lime_font_get_height  on  1688800  returned 2144\r\nI/trace   (28317): Font.hx:383: lime_font_get_num_glyphs  on  1688800  returned 260\r\nI/trace   (28317): Font.hx:385: lime_font_get_underline_position  on  1688800  returned -241\r\nI/trace   (28317): Font.hx:387: lime_font_get_underline_thickness  on  1688800  returned 143\r\nI/trace   (28317): Font.hx:389: lime_font_get_units_per_em  on  1688800  returned 2048\r\nI/trace   (28317): Font.hx:392: name char 0 is  251 : FB \r\nI/trace   (28317): Font.hx:392: name char 1 is  166 : A6 \r\nI/trace   (28317): Font.hx:392: name char 2 is  133 : 85 \r\nI/trace   (28317): Font.hx:392: name char 3 is  130 : 82 \r\nI/trace   (28317): Font.hx:392: name char 4 is  251 : FB \r\nI/trace   (28317): Font.hx:392: name char 5 is  180 : B4 \r\nI/trace   (28317): Font.hx:392: name char 6 is  156 : 9C \r\nI/trace   (28317): Font.hx:392: name char 7 is  160 : A0 \r\nI/trace   (28317): Font.hx:392: name char 8 is  248 : F8 \r\nI/trace   (28317): Font.hx:392: name char 9 is  182 : B6 \r\nI/trace   (28317): Font.hx:392: name char 10 is  165 : A5 \r\nI/trace   (28317): Font.hx:392: name char 11 is  168 : A8 \r\nI/trace   (28317): Font.hx:392: name char 12 is  249 : F9 \r\nI/trace   (28317): Font.hx:392: name char 13 is  134 : 86 \r\nI/trace   (28317): Font.hx:392: name char 14 is  149 : 95 \r\nI/trace   (28317): Font.hx:392: name char 15 is  141 : 8D \r\nI/trace   (28317): Font.hx:392: name char 16 is  248 : F8 \r\nI/trace   (28317): Font.hx:392: name char 17 is  134 : 86 \r\nI/trace   (28317): Font.hx:392: name char 18 is  181 : B5 \r\nI/trace   (28317): Font.hx:392: name char 19 is  181 : B5 \r\nI/trace   (28317): Font.hx:392: name char 20 is  84 : 54 \r\nI/trace   (28317): Font.hx:392: name char 21 is  244 : F4 \r\nI/trace   (28317): Font.hx:392: name char 22 is  159 : 9F \r\nI/trace   (28317): Font.hx:392: name char 23 is  147 : 93 \r\nI/trace   (28317): Font.hx:392: name char 24 is  184 : B8 \r\nI/trace   (28317): Font.hx:392: name char 25 is  244 : F4 \r\nI/trace   (28317): Font.hx:392: name char 26 is  159 : 9F \r\nI/trace   (28317): Font.hx:392: name char 27 is  147 : 93 \r\nI/trace   (28317): Font.hx:392: name char 28 is  184 : B8 \r\nI/trace   (28317): Font.hx:392: name char 29 is  248 : F8 \r\nI/trace   (28317): Font.hx:392: name char 30 is  178 : B2 \r\nI/trace   (28317): Font.hx:392: name char 31 is  189 : BD \r\nI/trace   (28317): Font.hx:392: name char 32 is  176 : B0 \r\nI/trace   (28317): Font.hx:392: name char 33 is  252 : FC \r\nI/trace   (28317): Font.hx:392: name char 34 is  178 : B2 \r\nI/trace   (28317): Font.hx:392: name char 35 is  185 : B9 \r\nI/trace   (28317): Font.hx:392: name char 36 is  173 : AD \r\nI/trace   (28317): Font.hx:392: name char 37 is  252 : FC \r\nI/trace   (28317): Font.hx:392: name char 38 is  183 : B7 \r\nI/trace   (28317): Font.hx:392: name char 39 is  141 : 8D \r\nI/trace   (28317): Font.hx:392: name char 40 is  161 : A1 \r\nI/trace   (28317): Font.hx:392: name char 41 is  251 : FB \r\nI/trace   (28317): Font.hx:392: name char 42 is  183 : B7 \r\nI/trace   (28317): Font.hx:392: name char 43 is  141 : 8D \r\nI/trace   (28317): Font.hx:392: name char 44 is  180 : B4 \r\nI/trace   (28317): Font.hx:392: name char 45 is  251 : FB \r\nI/trace   (28317): Font.hx:392: name char 46 is  182 : B6 \r\nI/trace   (28317): Font.hx:392: name char 47 is  157 : 9D \r\nI/trace   (28317): Font.hx:392: name char 48 is  173 : AD \r\nI/trace   (28317): Font.hx:392: name char 49 is  248 : F8 \r\nI/trace   (28317): Font.hx:392: name char 50 is  166 : A6 \r\nI/trace   (28317): Font.hx:392: name char 51 is  133 : 85 \r\nI/trace   (28317): Font.hx:392: name char 52 is  172 : AC \r\nI/trace   (28317): Font.hx:392: name char 53 is  249 : F9 \r\nI/trace   (28317): Font.hx:392: name char 54 is  167 : A7 \r\nI/trace   (28317): Font.hx:392: name char 55 is  145 : 91 \r\nI/trace   (28317): Font.hx:392: name char 56 is  180 : B4 \r\nI/trace   (28317): Font.hx:392: name char 57 is  57 : 39 \r\nI/trace   (28317): Font.hx:392: name char 58 is  244 : F4 \r\nI/trace   (28317): Font.hx:392: name char 59 is  159 : 9F \r\nI/trace   (28317): Font.hx:392: name char 60 is  147 : 93 \r\nI/trace   (28317): Font.hx:392: name char 61 is  144 : 90 \r\nI/trace   (28317): Font.hx:392: name char 62 is  244 : F4 \r\nI/trace   (28317): Font.hx:392: name char 63 is  191 : BF \r\nI/trace   (28317): Font.hx:392: name char 64 is  134 : 86 \r\nI/trace   (28317): Font.hx:392: name char 65 is  136 : 88 \r\nI/trace   (28317): Font.hx:392: name char 66 is  252 : FC \r\nI/trace   (28317): Font.hx:392: name char 67 is  134 : 86 \r\nI/trace   (28317): Font.hx:392: name char 68 is  165 : A5 \r\nI/trace   (28317): Font.hx:392: name char 69 is  186 : BA \r\nI/trace   (28317): Font.hx:392: name char 70 is  248 : F8 \r\nI/trace   (28317): Font.hx:392: name char 71 is  150 : 96 \r\nI/trace   (28317): Font.hx:392: name char 72 is  144 : 90 \r\nI/trace   (28317): Font.hx:392: name char 73 is  175 : AF \r\nI/trace   (28317): Font.hx:392: name char 74 is  252 : FC \r\nI/trace   (28317): Font.hx:392: name char 75 is  134 : 86 \r\nI/trace   (28317): Font.hx:392: name char 76 is  165 : A5 \r\nI/trace   (28317): Font.hx:392: name char 77 is  186 : BA \r\nI/trace   (28317): Font.hx:40: Font created with name null\r\nI/trace   (28317): Font.hx:370: font __fromFile img/Alaska.ttf returned 1594648\r\nI/trace   (28317): Font.hx:375: lime_font_get_family_name  on 1594648 returned ????????\r\nI/trace   (28317): Font.hx:377: lime_font_get_ascender  on  1594648  returned +2014\r\nI/trace   (28317): Font.hx:379: lime_font_get_descender  on  1594648  returned -512\r\nI/trace   (28317): Font.hx:381: lime_font_get_height  on  1594648  returned 2526\r\nI/trace   (28317): Font.hx:383: lime_font_get_num_glyphs  on  1594648  returned 260\r\nI/trace   (28317): Font.hx:385: lime_font_get_underline_position  on  1594648  returned -460\r\nI/trace   (28317): Font.hx:387: lime_font_get_underline_thickness  on  1594648  returned 104\r\nI/trace   (28317): Font.hx:389: lime_font_get_units_per_em  on  1594648  returned 2048\r\nI/trace   (28317): Font.hx:392: name char 0 is  248 : F8 \r\nI/trace   (28317): Font.hx:392: name char 1 is  150 : 96 \r\nI/trace   (28317): Font.hx:392: name char 2 is  177 : B1 \r\nI/trace   (28317): Font.hx:392: name char 3 is  129 : 81 \r\nI/trace   (28317): Font.hx:392: name char 4 is  247 : F7 \r\nI/trace   (28317): Font.hx:392: name char 5 is  166 : A6 \r\nI/trace   (28317): Font.hx:392: name char 6 is  133 : 85 \r\nI/trace   (28317): Font.hx:392: name char 7 is  171 : AB \r\nI/trace   (28317): Font.hx:40: Font created with name null\r\nI/trace   (28317): Font.hx:370: font __fromFile img/Alaska.ttf returned 1796560\r\nI/trace   (28317): Font.hx:375: lime_font_get_family_name  on 1796560 returned ????????\r\nI/trace   (28317): Font.hx:377: lime_font_get_ascender  on  1796560  returned +2014\r\nI/trace   (28317): Font.hx:379: lime_font_get_descender  on  1796560  returned -512\r\nI/trace   (28317): Font.hx:381: lime_font_get_height  on  1796560  returned 2526\r\nI/trace   (28317): Font.hx:383: lime_font_get_num_glyphs  on  1796560  returned 260\r\nI/trace   (28317): Font.hx:385: lime_font_get_underline_position  on  1796560  returned -460\r\nI/trace   (28317): Font.hx:387: lime_font_get_underline_thickness  on  1796560  returned 104\r\nI/trace   (28317): Font.hx:389: lime_font_get_units_per_em  on  1796560  returned 2048\r\nI/trace   (28317): Font.hx:392: name char 0 is  248 : F8 \r\nI/trace   (28317): Font.hx:392: name char 1 is  150 : 96 \r\nI/trace   (28317): Font.hx:392: name char 2 is  177 : B1 \r\nI/trace   (28317): Font.hx:392: name char 3 is  129 : 81 \r\nI/trace   (28317): Font.hx:392: name char 4 is  240 : F0 \r\nI/trace   (28317): Font.hx:392: name char 5 is  134 : 86 \r\nI/trace   (28317): Font.hx:392: name char 6 is  133 : 85 \r\nI/trace   (28317): Font.hx:392: name char 7 is  171 : AB \r\n```\r\n\r\nNote that the other font metrics showing height, num_glyphs etc. are the same in both versions indicating that the fonts appear to have been found and loaded correctly. \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/openfl/lime/issues/comments/176893629","html_url":"https://github.com/openfl/lime/issues/444#issuecomment-176893629","issue_url":"https://api.github.com/repos/openfl/lime/issues/444","id":176893629,"user":{"login":"NekR","id":1189265,"avatar_url":"https://avatars.githubusercontent.com/u/1189265?v=3","gravatar_id":"","url":"https://api.github.com/users/NekR","html_url":"https://github.com/NekR","followers_url":"https://api.github.com/users/NekR/followers","following_url":"https://api.github.com/users/NekR/following{/other_user}","gists_url":"https://api.github.com/users/NekR/gists{/gist_id}","starred_url":"https://api.github.com/users/NekR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NekR/subscriptions","organizations_url":"https://api.github.com/users/NekR/orgs","repos_url":"https://api.github.com/users/NekR/repos","events_url":"https://api.github.com/users/NekR/events{/privacy}","received_events_url":"https://api.github.com/users/NekR/received_events","type":"User","site_admin":false},"created_at":"2016-01-29T18:14:53Z","updated_at":"2016-01-29T18:14:53Z","body":"@jgranick thanks for trying it! I do not think it's problem of Android itself or any phone, I mean, I tried with different phones and tables, with different OS version and also emulators have same result.\r\n\r\nI am not really what is the difference in Android NDK and why it exists at all, but my version seems to be `r10d`.\r\n\r\nAlso I tried to compile project with different Java version 6/7, but got same result."}}