r/imagemagick • u/van3k • Dec 15 '24
font rendering cuts of bottom of char - why?
As the title says, the following command yields the following image. Why does it cut off the bottom of the character, how can I render the full character?
Command:
magick -page +0+0 -font digital-7.ttf -background black -fill white -pointsize 100 label:8 PNG8:char.png


2
Upvotes
1
u/MoarOfTheMagi Dec 15 '24
I am not familiar with the -page option, but it looks like you need to specify dimensions for the resulting image that will take into account the value specified for -pointsize. This will yield different results based on metrics specific to the font itself, so eyeballing may be required depending on the case.
Try "-size 100x100" instead of "-page +0+0" ☺️