When no text is recognised under the current word, pointsize (and perhaps other
attrs) returned from WordFontAttributes are uninitialized. They should be
sensible defaults or throw an error. It is strange that at the same time
res_it->Empty(RIL_WORD) is not being hit - earlier in the code we have a test
for that...
const char *font_name = res_it->WordFontAttributes(&bold, &italic, &underlined,
&monospace, &serif, &smallcaps,
&pointsize, &font_id);
const char *text = res_it->GetUTF8Text(RIL_WORD);
cout << pointsize << "pt " << strlen(text) << endl;
outputs:
527821968pt 0
15pt 11
15pt 11
15pt 5
15pt 6
15pt 5
15pt 10
15pt 6
15pt 5
15pt 8
15pt 11
15pt 4
15pt 12
Original issue reported on code.google.com by zea...@gmail.com on 10 Oct 2014 at 6:33
Original issue reported on code.google.com by
zea...@gmail.com
on 10 Oct 2014 at 6:33