<div dir="ltr">Hi there,<div><br></div><div>First off, sorry for the late reply! The holidays have created a bit of a backlog ;-)</div><div><br></div><div>While most of the text rendering classes have been adapted to use the new text engine, vtkVectorText is a bit different. Rather than rendering glyphs to an image buffer like the other classes, it uses a hardcoded set of polygons that are used to produce renderable text as polydata. From the vtkVectorText documentation, it only supports</div>

<div><br></div><div>&quot;...the ASCII alphanumeric characters a-z, A-Z, 0-9, [and] ASCII punctuation marks. (The supported ASCII character set are the codes (33-126) inclusive.) The only control character supported is the line feed character &#39;\n&#39;, which advances to a new line.&quot;</div>

<div><br></div><div>The good news is that the vtkTextActor3D class provides similar functionality (rendering text to a arbitrarily oriented 3D plane), although it will not produce polydata that can be used by other filters. I suggest using this class as a replacement for vtkVectorText if possible. Other pro-unicode classes that might be useful are vtkTextMapper and vtkTextActor.</div>

<div><br></div><div>As an aside, you no longer need to directly interact with vtkFontConfigFreeTypeTools to use a custom font. Newer versions of VTK have a VTK_FONT_FILE symbols that can be used in vtkTextProperty to indicate that a specific font file should be loaded and used. See the TestChartUnicode test for an example of this:</div>

<div><br></div><div>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">  </span><span style="color:rgb(85,255,255)">//</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(85,255,255)">Exercise</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(85,255,255)">the</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(85,255,255)">support</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(85,255,255)">for</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(85,255,255)">extended</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(85,255,255)">characters</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(85,255,255)">using</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(85,255,255)">UTF8</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(85,255,255)">encoded</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(85,255,255)">strings.</span></pre>


<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">  </span>chart<span style="color:rgb(170,170,170)">-&gt;</span><span style="font-style:italic">GetTitleProperties</span><span style="color:rgb(170,170,170)">()-&gt;</span>SetFontFamily<span style="color:rgb(170,170,170)">(</span><span style="color:rgb(85,85,255)">VTK_FONT_FILE</span><span style="color:rgb(170,170,170)">);</span></pre>


<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">  </span>chart<span style="color:rgb(170,170,170)">-&gt;</span><span style="font-style:italic">GetTitleProperties</span><span style="color:rgb(170,170,170)">()-&gt;</span><span style="font-style:italic">SetFontFile</span><span style="color:rgb(170,170,170)">(</span>&quot;/path/to/fontfile.ttf&quot;<span style="color:rgb(170,170,170)">);</span></pre>


<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">  </span>chart<span style="color:rgb(170,170,170)">-&gt;</span><span style="font-style:italic">SetTitle</span><span style="color:rgb(170,170,170)">(</span><span style="color:rgb(255,85,255)">&quot;\xcf\x85\xcf\x84\xce\xba&quot;</span><span style="color:rgb(170,170,170)">);</span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(170,170,170)"><br></span></pre><pre style="margin-top:0px;margin-bottom:0px">Hope this helps!</pre><pre style="margin-top:0px;margin-bottom:0px">Dave</pre>

</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Dec 21, 2013 at 8:27 AM, yarram <span dir="ltr">&lt;<a href="mailto:somasekhar.vit@gmail.com" target="_blank">somasekhar.vit@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I know that we can use our own system/custom fonts in VTK now using<br>
vtkFontConfigFreeTypeTools. I want to set some text to vtkVectorText but<br>
with my own font style. Can someone tell me how to do this? Thanks in<br>
advance.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/How-to-set-custom-fonts-to-vtkVectorText-using-vtkFontConfigFreeTypeTools-tp5725090.html" target="_blank">http://vtk.1045678.n5.nabble.com/How-to-set-custom-fonts-to-vtkVectorText-using-vtkFontConfigFreeTypeTools-tp5725090.html</a><br>


Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/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" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br></div>