cannot display clear Chinese ttf fonts

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
filamoon

cannot display clear Chinese ttf fonts

Post by filamoon »

Hi,

I'm using annotate to display Chinese characters. The font files are in .ttc and .ttf formats, directly copied from Windows XP.
I specified the full path to the font file.

I tried different font sizes, like 12pt and 16pt. The display effect is really bad. With anti-aliasing, it looks blur, way worse than the display effect under Windows. Without anti-aliasing, it is totally unacceptable. The strokes are not continuous and I can clearly see the discrete dots.

Any idea?

Thanks!
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: cannot display clear Chinese ttf fonts

Post by anthony »

Examples???
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
filamoon

Re: cannot display clear Chinese ttf fonts

Post by filamoon »

without anti-aliasing
Image

with anti-aliasing
Image

As can be seen, even with anti-aliasing, the strokes are still very blurry.

BTW, I tried "convert -list font" but it says unrecognized list type...
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: cannot display clear Chinese ttf fonts

Post by anthony »

The font is a true type font designed for use with anti-aliasing.

It is NOT a bitmap font which works better for small scales.
BTW, I tried "convert -list font" but it says unrecognized list type...
that means your IM is an older version. Use -list type instead for your version.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
filamoon

Re: cannot display clear Chinese ttf fonts

Post by filamoon »

Thank you very much!

I found a bitmap font:
WenQuanYi-Bitmap-Song-Bold WenQuanYi Bitmap Song Normal Normal 700
WenQuanYi-Bitmap-Song-Regular WenQuanYi Bitmap Song Normal Normal 400

But I cannot use it to draw any characters, including English letters.
Could you please shed any light?
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: cannot display clear Chinese ttf fonts

Post by anthony »

The only way I know of handling a bitmap font I know about is as a X server font.

Sorry I don't know how to help you for this.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply