
I figured with that dynamic image thing you have.
Oooh!Dylan wrote:That is about the same principle applied
That's exactly what I have doneEcazS wrote:Alrighty then! I'll have a go at it. I guess I just could use the GD library and create an image on my host and then have the filename and img link in my signature
I was expecting something more complicated XDjacek wrote:That's exactly what I have doneEcazS wrote:Alrighty then! I'll have a go at it. I guess I just could use the GD library and create an image on my host and then have the filename and img link in my signature
Imagettftext($img, 10, 0, $pos_x, $pos_y, $color, 'verdana.ttf', "Testing... 123");
if (str_contains(':', $title)){ $parts = explode(':', $title); $parts[0] = trim($parts[0]) . ':'; $parts[1] = trim($parts[1]); $size = imagettfbbox(11, 0, './fonts/bold_font.ttf', $parts[0]); $width = $size[2] - $size[0]; imagettftext($img, 11, 0, 8, 17, $font, './fonts/bold_font.ttf', $parts[0]); imagettftext($img, 11, 0, $width + 14, 17, $font, './fonts/font.ttf', $parts[1]); }else{ imagettftext($img, 11, 0, 8, 17, $font, './fonts/font.ttf', $title); }
See my "three missing string functions" post in the php code sectionEcazS wrote:I'm guessing str_contains is a function of yours(?)
I have no idea, but you can download them here http://betterphp.co.uk/ext/img/banners/fonts/EcazS wrote:And what font are you using? Mine looks all blurry
yeah, strpos seems like a bit of a un-clean way to do that so I made a function to wrap it until php is fixedEcazS wrote:You could also just use strpos($var, ":") in this case
Edit,
Oh, that function was using strpos