Re: how to add chinese font in the 'xyouts' procedure [message #59324] |
Mon, 24 March 2008 00:04  |
wfzhao
Messages: 11 Registered: March 2008
|
Junior Member |
|
|
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
|
|
|
Re: how to add chinese font in the 'xyouts' procedure [message #59380 is a reply to message #59324] |
Wed, 19 March 2008 23:25   |
wfzhao
Messages: 11 Registered: March 2008
|
Junior Member |
|
|
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......- 隐藏被引用文字 -
>
> - 显示引用的文字 -
thanks very much
it does work
|
|
|
Re: how to add chinese font in the 'xyouts' procedure [message #59394 is a reply to message #59380] |
Wed, 19 March 2008 08:22   |
Wasit.Weather
Messages: 62 Registered: February 2008
|
Member |
|
|
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......
|
|
|
Re: how to add chinese font in the 'xyouts' procedure [message #59464 is a reply to message #59324] |
Mon, 24 March 2008 18:33  |
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 :-)
|
|
|