Hi
I got a simple little problem.
I got a TTF-file, and I gotta convert it to BMP, so I can use it with a PHP-function.
PHP Code:
mageloadfont() loads a user-defined bitmap font and returns an identifier for the font (that is always greater than 5, so it will not conflict with the built-in fonts). It returns FALSE in case of error.
And a code example:
PHP Code:
<?php $im = imagecreate(50, 20); $black = imagecolorallocate($im, 0, 0, 0); $white = imagecolorallocate($im, 255, 255, 255); imagefilledrectangle($im, 0, 0, 49, 19, $white); $font = imageloadfont("04b.gdf"); imagestring($im, $font, 0, 0, "Hello", $black); imagepng($im); ?>
I hope I'll get a fast answer.
Best regards
Rohde