japanese text broken in winxp EN

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
vuthecuong

japanese text broken in winxp EN

Post by vuthecuong »

Hi,
In winxp EN with JP locale installed (I can type Japanese in MS words after switching from EN locale
to JP locale), I cannot output jp text to image:
EX: convert –size 300x200 –pointsize 70 –font MSMICHO.TTF label:日本語 test.jpg
- Above command did not raised any error but outputted image have text日本語 broken.

I’m sure U have JP font installed.
Regional Option tab in Regional setting of Control Panel have set to Japanese, “Language”
tab have “Install files for East Asean languages” checked (meant JP fonts were installed)
and “Advanced”tab have “Language for Non-Unicode programs”combobox set to “Japanese”.

What I’m still missing?

P/S: Do I need to install IM in WinXP JP ver for proper JP text output to image???
Thanks and regards,
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: japanese text broken in winxp EN

Post by anthony »

The output appears to look fine to me except it came out as two lines (the second blank). The symbols appear to look as you give in your message.

As such what do you mean by 'broken' ?

There is no need to set or modify the locale as the text is just treated as unicode text. Locale i used fro specifing differences in search, character case, time and monetary symbols, not for drawing or displaying the text.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
vuthecuong

Re: japanese text broken in winxp EN

Post by vuthecuong »

Thanks for fast response Anthony.
No, totally broken (with question mark), Japanese people cannot
understand that it is '日本語', it it not human-readble.

PS: I faced this in Freebsd also. My solution is that adding export ja.utf8 to .xinitrc and IM
in freebsd became happy with JP text.
But in windows I still dont know.
regards
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: japanese text broken in winxp EN

Post by anthony »

Looks perfectly similar to the unicode characters '日本語'
Very readable. perhaps your Mincho font is broken!

Code: Select all

convert -pointsize 70 -font Mincho label:'日本語' jap.jpg
produced
Image

Looks like the unicode to me. this was under Linux with the MSMincho TTF font.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply