H
H
honormgr2017-01-18 15:39:19
PHP
honormgr, 2017-01-18 15:39:19

Autocorrect font size?

Hello!
Please tell me how to do the following.
There is a valid canvas (created through imagemagic), 200 x 200, and we attach text there, how to make an auto-check for compliance with the size (that is, so that the text does not get out)?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Burov, 2017-01-18
@BuriK666

php.net/manual/en/imagick.queryfontmetrics.php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question