The width of the font

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
dreamcatcher
Posts: 2
Joined: 2014-06-20T11:06:17-07:00
Authentication code: 6789

The width of the font

Post by dreamcatcher »

I downloaded the font "cardo" from the following homepage:

http://www.fontsquirrel.com/

I found a bug in the option -debug annotate.
The width value is too high with the following command line:

Code: Select all

convert -debug annotate  xc: -font "/usr/share/fonts/truetype/Cardo-Regular.ttf" -annotate 0 "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" null: 2>&1 | grep "Metrics:" | sed 's/[ \t]\+/ /g; s/^[ \t]*//g; s/[ \t]*$//g' | cut -d ' ' -f 5 | tr -d ';' | xargs printf "Width: %.6f\n"
The result is:
Width: 33554800.000000

The following fonts does not work:

Gentium Basic-Bold
Gentium Basic-Regular
Gentium Plus-Regular
Post Reply