Code: Select all
convert -size 200x50 xc:transparent -font /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf -fill black -pointsize 10 -draw "text 0,10 'hello there" -trim +repage test.png
How can I do that?
Code: Select all
convert -size 200x50 xc:transparent -font /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf -fill black -pointsize 10 -draw "text 0,10 'hello there" -trim +repage test.png
That is exactly right, however it also depends on the 'density' or 'resolution' of the image. Default is 72 dpi.fmw42 wrote:I am no expert on this, but it seems to me that -pointsize 10 -font Arial is selecting the 10pt Arial font, if that font supports that pointsize. But I will defer to the IM developers. Perhaps I misunderstand you question.
The meaning of "Sans" will depend on your font setup in your window/display manager setup. Typically Gome or KDE. I have no idea what font it refers too as it seems to change every so often with new releases, or at least it did.galv wrote:Also how can I identify which file is exporting which font name? For example, I have the "Sans" font in my fonts list in OpenOffice Writer but I don't have a Sans.ttf in my system.
Hm, I tried in Gimp as well, if I select 10pt, it will create an image of the same size as the one that convert makes. But when I try the same font in OpenOffice Writer ("DejaVu Sans") with 10pt again, it has a different size.
:/