<div dir="ltr">Are you sure the font file includes the glyphs in that UTF8 string? That's the only thing I can think of that would prevent that string from rendering.</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 21, 2017 at 10:31 PM, Frank Sea <span dir="ltr"><<a href="mailto:fromseattle@gmail.com" target="_blank">fromseattle@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi All,<br>
<br>
I built the test code at the following location:<br>
<a href="https://gitlab.kitware.com/vtk/vtk/blob/master/Rendering/FreeType/Testing/Cxx/TestMathTextFreeTypeTextRenderer.cxx#L184" rel="noreferrer" target="_blank">https://gitlab.kitware.com/<wbr>vtk/vtk/blob/master/Rendering/<wbr>FreeType/Testing/Cxx/<wbr>TestMathTextFreeTypeTextRender<wbr>er.cxx#L184</a><br>
<br>
which tests displaying utf8 chars like following:<br>
// UTF-8 freetype handling:<br>
vtkNew<vtkTextActor> actor15;<br>
actor15->GetTextProperty()-><wbr>SetFontFamily(VTK_FONT_FILE);<br>
actor15->GetTextProperty()-><wbr>SetFontFile(uncodeFontFile.c_<wbr>str());<br>
actor15->GetTextProperty()-><wbr>SetJustificationToCentered();<br>
actor15->GetTextProperty()-><wbr>SetVerticalJustificationToCent<wbr>ered();<br>
actor15->GetTextProperty()-><wbr>SetFontSize(18);<br>
actor15->GetTextProperty()-><wbr>SetColor(0.0, 1.0, 0.7);<br>
actor15->SetInput("UTF-8 FreeType:<br>
\xce\xa8\xd2\x94\xd2\x96\xd1\<wbr>x84\xd2\xbe");<br>
actor15->SetPosition(10, 110);<br>
<br>
I provided font file from<br>
<a href="https://github.com/aosp-mirror/platform_frameworks_base/blob/master/data/fonts/DroidSansFallbackFull.ttf" rel="noreferrer" target="_blank">https://github.com/aosp-<wbr>mirror/platform_frameworks_<wbr>base/blob/master/data/fonts/<wbr>DroidSansFallbackFull.ttf</a><br>
<br>
But the text is not rendered. It's blank for that one. Anyone know the<br>
reason? I am on Windows 10.<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.<wbr>com/VTK-Users-f1224199.html</a><br>
______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_<wbr>FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/vtkusers</a><br>
</blockquote></div><br></div>