<!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&nbsp;MAY need to make changes in VTK. 
Although I&nbsp;haven't checked the code,</FONT></DIV>
<DIV><FONT face=Arial size=2>I think that you need to search where it sets 
its&nbsp;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>&nbsp;</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>&nbsp; ...</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp; FTFont* font_ = new 
FTGLExtrdFont;</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp; ...</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp; 
font_-&gt;CharMap(ft_encoding_unicode);</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp; ...</FONT></DIV>
<DIV><FONT face=Arial size=2>}</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Huiqun Zhou</FONT></DIV>
<DIV>&nbsp;</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>&nbsp;</DIV>
  <DIV><FONT size=2>do you&nbsp;have any ideas about how to&nbsp;show chinese 
  characters</FONT></DIV>
  <DIV><FONT size=2>in a vtk window? </FONT></DIV>
  <DIV><FONT size=2></FONT>&nbsp;</DIV>
  <DIV><FONT size=2>i am working on&nbsp;ms windows&nbsp;system and i know how 
  to </FONT></DIV>
  <DIV><FONT size=2>display chinese&nbsp;by using some opengl functions,such as 
  </FONT></DIV>
  <DIV><FONT size=2>wglUseFontOutlinesW. </FONT></DIV>
  <DIV><FONT size=2></FONT>&nbsp;</DIV>
  <DIV><FONT size=2>i noticed that vtk&nbsp;is now&nbsp;using&nbsp; 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>&nbsp;</DIV>
  <DIV><FONT size=2>thanks.</FONT></DIV>
  <DIV><FONT size=2></FONT>&nbsp;</DIV>
  <DIV><FONT size=2>Joey</FONT></DIV>
  <DIV><FONT size=2></FONT>&nbsp;</DIV>
  <DIV><FONT size=2>R&amp;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>&nbsp;</DIV></BLOCKQUOTE></BODY></HTML>