Hi Anthony,
Thank you for your help.
It support any font in X window, TTF, or Type-1 formats.
What about the old bitmap font?
How to specify the font name? Will a traditional X font name like
"-misc-simsun 18030-medium-r-normal--0-0-0-0-m-0-gb2312.1980-0" be accepted
?
TTF fonts usally use a UTF specification, and the microsoft windows font
"SimSun" has chinese characters in it in UTF encoding.
I example this on
http://www.imagemagick.org/Usage/text/#chinese
A quick search of the iso-8859 did not turn up a chinese version, though
I do know the chinese themselves prefer a different encoding for documents
and text, they developed called gb2312.
Yes, in fact I want to use gb2312 fonts. I issued a command like:
$ convert -background lightblue -fill red -font guobiao16 -pointsize 48
-draw "text 10,10 你好" lable.gif aaa.gif
where guobiao16 is a gb2312 bitmap font. The error message was:
convert: Non-conforming drawing primitive definition `ã'.
Linux systems can convert gb2312 to utf-8 using a command like
iconv -f gb2312 -t utf8 text > tex.utf8
So gb2312 text must be converted to utf-8?
But I have found it to be error prone, as the tinest error (one
character out) and the text becomes unconverable (iconv just aborts),
or incorrect (16 bit charcaters are out of sync)
A better way of converting (or at least printing) gb2312 text I found to
be to display the text in firefox using a header like...
=======8<--------
<HTML>
<HEAD>
<META http-equiv=Content-type content="text/html; charset=gb2312">
<TITLE>.....</TITLE>
</HEAD><BODY>
.....
=======8<--------
In printing firefox handles the conversion to UTF for postscript output
much more gracfully. But I have not figured out an automated way to do
this.
Why do I know this?
My wife is from mainland china, and she asks me to print chinese books
for her to read from chinese web sites. Difficult as I myself do not
read chinese, but I manage to get it working. :-)
Any extra information you have on this, IM or otherwise can be mailed to
me.
If it is IM related I am sure I'll publish in IM examples for others to
use.
Anthony Thyssen ( System Programmer ) <[EMAIL PROTECTED]>
-----------------------------------------------------------------------------
`` When you type to Unix, a gnome deep in the system is
gathering your characters and saving them in a secret place. ''
Unix 6th edition
manual
-----------------------------------------------------------------------------
Anthony's Home is his Castle http://www.cit.gu.edu.au/~anthony/
best regards,
Dai Yuwen
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users