gd-text
gd-text copied to clipboard
Font size dependent on image size (px)
Is there any function to setFontSize dependent on image size (px) ? I want the text to be extended (fontsize set) over the whole width of the image (and height - multiline)
Hi, check this pull request: https://github.com/stil/gd-text/pull/30
Hi, check this pull request: #30
Can you tell me how to download version with fitfontsize ? I used composer and don't know how to connect with fitfontsize ? Default box.php don't have this method ;/
- Download this library and manually include it in your project.
- Open this pull request: https://github.com/stil/gd-text/pull/30
- Open the tab "Files changed"
- Click the "View file" button from the "src/Box.php" panel
- Click the "Raw" button
- Copy the raw content and replace it in your Box.php content
- Enjoy
PS. successfully tested by me.