comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: how to add chinese font in the 'xyouts' procedure
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: how to add chinese font in the 'xyouts' procedure [message #59464 is a reply to message #59324] Mon, 24 March 2008 18:33 Go to previous message
Wasit.Weather is currently offline  Wasit.Weather
Messages: 62
Registered: February 2008
Member
On Mar 24, 2:04 am, wfz...@bjmb.gov.cn wrote:
> On 3月19日, 下午11时22分, Bulrush <Wasit.Weat...@gmail.com> wrote:
>
>
>
>
>
>> On Mar 19, 12:07 am, wfz...@bjmb.gov.cn wrote:
>
>>> Hi,all
>>> when I create a contour plot, I need to use 'xyouts' procedure to add
>>> a title for my plot map.
>>> in the xyouts procedure, I want to use the chinese charactor as the
>>> value of the 'string' argument.
>>> but the chinese charactor can't be displayed correctly.
>>> so anyone can tell my what is wrong?
>>> very strange, if i input 'print xxx' in the command line in IDL(XXX
>>> present chinese charactor), it will be diaplay correct.
>>> so I don't understand why in the procedure 'XYOUTS' it can't
>
>>> by the way, I ever search 'xyouts' in the forum, someone said can set
>>> the font as 'MS SONG',but when I command it in the IDL command line,
>>> the system said there is no such font.
>>> so May I have to install song font first?
>
>>> I will appreciate any help from all.
>
>> You can set the font to Chinese character first.
>> !p.font=1
>> Device,set_font='SimHei',/TT_font
>> plot or xyouts......- 隐藏被引用文字 -
>
>> - 显示引用的文字 -
>
> hi,
> under windows, it does work
> under linux, the error information is : ' can't find the 'SimHei'
> font,
> so what can I do?
> thanks a lot- Hide quoted text -
>
> - Show quoted text -

SimHei is the font 宋体(songti),or maby arial. That means your Linux
system doesn't have this font. There are two option to solve this
problem.
1) go to your Windows control panel==>Font==>, then copy any chinese
fonts from there to where the Linux system fonts located.
2)look for any other chinese fonts under Linux system, there maybe
'Arial' or any chinese font, then, you can use that font instead of
SimHei
Hope that helps, and don't forget to say'it helped' if you solve your
problem :-)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: QHULL Documentation Request, Re: Particle_Trace question ?
Next Topic: Re: Dimeo genetic algorithm

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 18:36:45 PDT 2025

Total time taken to generate the page: 0.31926 seconds