Some things I tried this AM.
1. downloaded imagick_type_gen (chrome sees it as a python file; add a pl extension instead)
2. tried running imagick_type_gen.pl with no options - can't do; script uses "locate", and there is no analog for a "whence"-type program under Win
3. created a listing of ttf font files under c:\windows\fonts using "dir"; ttc files don't work with the script
4. make sure there are no special perl metacharacters, like parenthesis, in the path names (e.g., "C:\Program Files (x86)") - re's in script will choke
5. ran "perl imagick_type_gen.pl -f font_paths_ttf.txt >type.xml"; generated an xml file that looks clean and parses correctly; used listing of ttf font files from step 3 for input
6. set PREFIX=C:\Program Files\ImageMagick
7. installed type.xml from step 5 under %PREFIX%
8. tested all 328 ttf fonts with a perl script that calls "IM_convert"; the test script reads font names from an input file, and generates a pango input file with that font name
Summary:
The results are the same as my last post before yesterday - 22 fonts run cleanly; everything else generates warnings. (NOTE: The list of font names that run cleanly are included in my last post before yesterday - previous page of this thread.)
Code: Select all
Microsoft Windows [Version 10.0.17134.165]
(c) 2018 Microsoft Corporation. All rights reserved.
C:\Users\user>set PREFIX=C:\Program Files\ImageMagick
C:\Users\user>echo %PREFIX%
C:\Program Files\ImageMagick
C:\Users\user>cd \0\mm\test
C:\0\mm\test>perl .\t_fonts.pl
t_fonts.pl : 328 fonts processed
C:\0\mm\test>
A font like Algerian generates one warning - log entry from test script includes font name, generated pango markup, the IM_convert command used with "system()", and the output from IM_convert:
Code: Select all
003 : "Algerian"
<span foreground="#FFFFFF" font="Algerian" font_size="98304" font_weight="heavy">The <b>Warm-Group</b>
<i>is</i>
<s>the</s> <u>BEST Gathering</u></span>
"C:\Program Files\ImageMagick\convert" -size 1024x768 -background "#10253F" -gravity Center pango:"@C:\0\mm\test\t_text_pango.txt" t_image_003_Algerian.jpg 2>>C:\0\mm\test\t_fonts_log.txt
** (convert.exe:2948): WARNING **: couldn't load font "Algerian Heavy Italic Not-Rotated 96", falling back to "Sans Heavy Italic Not-Rotated 96", expect ugly output.
A font like Agency-FB-Bold generates multiple warnings:
Code: Select all
002 : "Agency-FB-Bold"
<span foreground="#FFFFFF" font="Agency-FB-Bold" font_size="98304" font_weight="heavy">The <b>Warm-Group</b>
<i>is</i>
<s>the</s> <u>BEST Gathering</u></span>
"C:\Program Files\ImageMagick\convert" -size 1024x768 -background "#10253F" -gravity Center pango:"@C:\0\mm\test\t_text_pango.txt" t_image_002_Agency-FB-Bold.jpg 2>>C:\0\mm\test\t_fonts_log.txt
** (convert.exe:9828): WARNING **: couldn't load font "Agency-FB-Bold Heavy Not-Rotated 96", falling back to "Sans Heavy Not-Rotated 96", expect ugly output.
** (convert.exe:9828): WARNING **: couldn't load font "Agency-FB-Bold Bold Not-Rotated 96", falling back to "Sans Bold Not-Rotated 96", expect ugly output.
** (convert.exe:9828): WARNING **: couldn't load font "Agency-FB-Bold Heavy Italic Not-Rotated 96", falling back to "Sans Heavy Italic Not-Rotated 96", expect ugly output.