Thanks once again, Anthony. I needed some time to try out some more options, including -annotate as you suggested. Here's my latest input:
Code: Select all
convert test1.png -debug annotate -font Microsoft-Sans-Serif -gravity center -density 72 -pointsize 12 +antialias -annotate 0 "My test text" test1_out.png
and the debug output says,
Code: Select all
2009-06-17T14:00:22+02:00 0:01 0.547u 6.5.2 Annotate convert[1008]: annotate.c/RenderFreetype/1459/Annotate
Font c:\windows\fonts\micross.ttf; font-encoding none; text-encoding none; pointsize 12
2009-06-17T14:00:22+02:00 0:01 0.547u 6.5.2 Annotate convert[1008]: annotate.c/GetTypeMetrics/1001/Annotate
Metrics: text: My test text; width: 55; height: 14; ascent: 12; descent: -3; max advance: 16; bounds: -1,-2 10,9; origin: 54,0; pixels per em: 12,12; underline position: -3.4375; underline thickness: 1.59375
2009-06-17T14:00:22+02:00 0:01 0.547u 6.5.2 Annotate convert[1008]: annotate.c/RenderFreetype/1459/Annotate
Font c:\windows\fonts\micross.ttf; font-encoding none; text-encoding none; pointsize 12
I don't have many experience with reading the debug information, but it seems ok to me, and obviously the font file (c:\windows\fonts\micross.ttf) has been identified correctly. However, the result is the same as before
Meanwhile I tried keeping antialiasing switched on and using -level to modify the gamma level (all I need is black & white output, nothing in between), but that didn't improve the results. Any recommendations to make the text output look more like the appearance on Windows dialogs?
Best Regards
jk