Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with function "drawFitFontSize" #49

Open
Kwarcek opened this issue Feb 21, 2019 · 2 comments
Open

Problem with function "drawFitFontSize" #49

Kwarcek opened this issue Feb 21, 2019 · 2 comments

Comments

@Kwarcek
Copy link

Kwarcek commented Feb 21, 2019

I've got problem with drawFitFontSize - works till go closer to border (when fontSize is bigger or text longer) - then 503 error or:

Fatal error: Maximum execution time of 300 seconds exceeded in XXX/public_html/gdtext/vendor/stil/gd-text/src/Box.php on line 476

I'm using #30

Function draw works well
Function should reduce the size of text, but something is wrong and results is 503/statement up^

@fbett
Copy link

fbett commented Apr 10, 2019

Same problem here.

Solution: $precision has to be > 0

@dustball
Copy link

Took me forever to get this function working. The extra parameters are NOT optional it seems.

Try:

$textbox->drawFitFontSize("example",0.2,100,1);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants