<div dir="ltr"><p>I am using QRawFont in my project to create a raw font object. Using
that object I am extracting the glyph.
I using it as follows:</p>
<pre><code><span>{</span><span><br></span><span>QString</span><span> myfname</span><span>=</span><span>"FreeMono.ttf"</span><span>;</span><span><br>myFont</span><span>=</span><span>new</span><span> </span><span>QRawFont</span><span>(</span><span>myfname</span><span>,</span><span>800</span><span>,</span><span>QFont</span><span>::</span><span>PreferFullHinting</span><span>);</span><span> </span><span>//line 1</span><span><br>
</span><span>.......</span><span><br>myFont</span><span>-></span><span>glyphIndexesForChars</span><span>(</span><span>mychars</span><span>,</span><span>numofchars</span><span>,</span><span>myglyphindexes</span><span>,&</span><span>numofglyphs</span><span>);</span><span><br>
basePath</span><span>=</span><span>myFont</span><span>-></span><span>pathForGlyph</span><span>(</span><span>myglyphindexes</span><span>[</span><span>0</span><span>]);</span><span><br></span><span>}</span></code></pre>
<p>I am using this basepath to calculate glyph curves and using it to
finally draw the character for given font.</p>
This code works successfully on windows and Linux.
Then I tried to build it for android using Necessitas 4.8. It built successfully. When I
deployed my project on android device it deployed successfully. <br>But When my
function call reaches it to 'line 1" i get following error in Necessitas application tab : "This plugin does not
support font engines created directly from font data"
and then application crashes. <br>How do I solve this problem.....what I am doing wrong?<br>Please guide me if I am doing something wrong or any other way of doing same function.</div>