Thanks, fmw42. As you suggested, I did the following:
Code: Select all
find /usr/share/fonts/ -type f \( -name "*.ttf" -or -name "*.otf" \) > fonts
IFS=$'\r\n' content=($(cat fonts))
rm -r fonttestout
mkdir fonttestout
for ((idx = 0; idx < ${#content[@]}; idx+=1)); do
font="${content[idx]}"
name=`basename $font`
echo $name
convert -font "$font" -pointsize 72 label:"Å" -trim +repage fonttestout/"$name.png"
exiftool -all= fonttestout/"$name.png" -overwrite_original > /dev/null
done
montage -fill white -label '%f' fonttestout/*png -background grey30 -gravity center -tile 3 -geometry +80+20 all.png
Output:
http://i.imgur.com/fFiYC5D.png
Carlito, FreeSans, ipagp, ipamp, Roboto, RobotoCondensed cut off the o in Å
Cantarell, Carlito, DejaVuSans, DroidSerif, LeagueGothic, LiberationMono, LiberationSans, LiberationSerif, NotoSans, NotoSerif, OpenSans, Roboto, RobotoCondensed cut off the left end of an italic A.
DroidSansJapanese doesn't have that character at all - in a way different from arabic fonts etc. (might be normal).
Code: Select all
A Cantarell-BoldOblique.otf
A Cantarell-Oblique.otf
A Carlito-BoldItalic.ttf
A DejaVuSans-BoldOblique.ttf
A DejaVuSansCondensed-BoldOblique.ttf
A DejaVuSansCondensed-Oblique.ttf
A DejaVuSansMono-BoldOblique.ttf
A DejaVuSansMono-Oblique.ttf
A DejaVuSans-Oblique.ttf
A DejaVuSerif-BoldItalic.ttf
A DejaVuSerifCondensed-BoldItalic.ttf
A DejaVuSerifCondensed-Italic.ttf
A DejaVuSerif-Italic.ttf
A DroidSerif-BoldItalic.ttf
A DroidSerif-Italic.ttf
A LeagueGothic-CondensedItalic.otf
A LiberationMono-BoldItalic.ttf
A LiberationMono-Italic.ttf
A LiberationSans-Italic.ttf
A LiberationSerif-BoldItalic.ttf
A LiberationSerif-Italic.ttf
A NotoSans-BoldItalic.ttf
A NotoSans-Italic.ttf
A NotoSansUI-BoldItalic.ttf
A NotoSansUI-Italic.ttf
A NotoSerif-BoldItalic.ttf
A NotoSerif-Italic.ttf
A OpenSans-BoldItalic.ttf
A OpenSans-ExtraBoldItalic.ttf
A OpenSans-Italic.ttf
A OpenSans-LightItalic.ttf
A OpenSans-SemiboldItalic.ttf
_ DroidSansJapanese.ttf
oA Roboto-BlackItalic.ttf
oA Roboto-BoldItalic.ttf
oA RobotoCondensed-BoldItalic.ttf
oA RobotoCondensed-Italic.ttf
oA RobotoCondensed-LightItalic.ttf
oA Roboto-Italic.ttf
oA Roboto-LightItalic.ttf
oA Roboto-MediumItalic.ttf
oA Roboto-ThinItalic.ttf
o Carlito-Bold.ttf
o Carlito-Italic.ttf
o Carlito-Regular.ttf
o FreeSansBoldOblique.ttf
o FreeSansBold.ttf
o FreeSansOblique.ttf
o FreeSans.ttf
o ipagp.ttf
o ipamp.ttf
o Roboto-Black.ttf
o Roboto-Bold.ttf
o RobotoCondensed-Bold.ttf
o RobotoCondensed-Light.ttf
o RobotoCondensed-Regular.ttf
o Roboto-Light.ttf
o Roboto-Medium.ttf
o Roboto-Regular.ttf
o Roboto-Thin.ttf
I'm assuming this means that the fonts are at fault and the developers/designers/maintainers should be contacted.
Is there a way to tell Imagemagick that it should not take the font's information about how much space a glyph needs for granted and that it should assume that each glyph needs more space? Something like `-glyphpad 20x20`?
EDIT (didn't see the post):
Code: Select all
fontconfig 2.12.0-1
freetype2 2.6.5-1