<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I think you MAY need to make changes in VTK.
Although I haven't checked the code,</FONT></DIV>
<DIV><FONT face=Arial size=2>I think that you need to search where it sets
its CharMap() when VTK creates its 3D </FONT></DIV>
<DIV><FONT face=Arial size=2>font by using FTGL, and see if it is already set
</FONT><FONT face=Arial size=2>to UNICODE. If yes, please forget </FONT></DIV>
<DIV><FONT face=Arial size=2>what I write here and look for other cure (although
I don't think so). If no, do something</FONT></DIV>
<DIV><FONT face=Arial size=2>like below:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>// in a function that initializes a 3D font,
say,</FONT></DIV>
<DIV><FONT face=Arial size=2>FTFont* initialize_3DFont(const char*
name)</FONT></DIV>
<DIV><FONT face=Arial size=2>{</FONT></DIV>
<DIV><FONT face=Arial size=2> ...</FONT></DIV>
<DIV><FONT face=Arial size=2> FTFont* font_ = new
FTGLExtrdFont;</FONT></DIV>
<DIV><FONT face=Arial size=2> ...</FONT></DIV>
<DIV><FONT face=Arial size=2>
font_->CharMap(ft_encoding_unicode);</FONT></DIV>
<DIV><FONT face=Arial size=2> ...</FONT></DIV>
<DIV><FONT face=Arial size=2>}</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Hope this help. This is what I know about how to
use Chinese characters with FTGL. VTK</FONT></DIV>
<DIV><FONT face=Arial size=2>should use it in similar way.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Huiqun Zhou</FONT></DIV>
<DIV> </DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=crazyyao@mail.rdcps.ac.cn href="mailto:crazyyao@mail.rdcps.ac.cn">Yao
Jifeng</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=vtkusers@vtk.org
href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, March 16, 2004 9:52
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [vtkusers] How to display
Chinese annotation?</DIV>
<DIV><BR></DIV>
<DIV><FONT size=2>hi vtkusers,</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>do you have any ideas about how to show chinese
characters</FONT></DIV>
<DIV><FONT size=2>in a vtk window? </FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>i am working on ms windows system and i know how
to </FONT></DIV>
<DIV><FONT size=2>display chinese by using some opengl functions,such as
</FONT></DIV>
<DIV><FONT size=2>wglUseFontOutlinesW. </FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>i noticed that vtk is now using FTGL to
display fonts, which</FONT></DIV>
<DIV><FONT size=2>really made me confused: should i modify the FTGL library or
just</FONT></DIV>
<DIV><FONT size=2>the related vtk classes
(vtkTextMapper,vtkOpenGLFreeTypeTextMapper)?</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>thanks.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Joey</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>R&D Center for Parallel Computing</FONT></DIV>
<DIV><FONT size=2>Institue of Software, Chinese Academy of
Sciences</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV></BLOCKQUOTE></BODY></HTML>