Page 1 of 1

The width of the font

Posted: 2014-06-23T14:21:19-07:00
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