Windows-specific Pango font identification bug
Posted: 2017-11-26T22:32:28-07:00
Any of the fonts from here seem affected: https://www.google.com/get/noto/help/cjk/
But, for specific testing, you can use NotoSansCJKtc-Medium.otf from this archive:
https://noto-website-2.storage.googleap ... hinted.zip
Create a UTF-8 file called test.txt containing the following text:
And then execute:
On Linux, the command works fine (the test output is a blank image because the text is just a space). On Windows (Win10 64-bit), the command fails because it seems Pango cannot find the font on the system. Using ImageMagick 7.0.7 on both platforms. The same command works fine on both platforms if I change the font_desc to "Arial" or something else installed on the system, and other Windows applications can use these Noto Sans CJK fonts without issues.
I suspect there's a problem with the version of Pango integrated with the current Windows build of ImageMagick. Possibly an outdated version or porting issue.
But, for specific testing, you can use NotoSansCJKtc-Medium.otf from this archive:
https://noto-website-2.storage.googleap ... hinted.zip
Create a UTF-8 file called test.txt containing the following text:
Code: Select all
<span font_desc="Noto Sans CJK TC Medium" size="10000" weight="normal" foreground="white"> </span>
Code: Select all
magick -background transparent pango:@test.txt output.png
I suspect there's a problem with the version of Pango integrated with the current Windows build of ImageMagick. Possibly an outdated version or porting issue.