i'm making dynamic gif files. the user can specify which font to use, and i use a switch statement to set the appropriate font size, but it's not working.
code snippet:
actually, those sizes aren't the appropriate ones - i cranked them up really high to see for sure if it was working. and it's not.
it works fine with Verdana, but the others are way too small. to see the results for yourself, you can modify this URL:
http://bashfreebieguide.com/mystatus...g&font=verdana
the resulting image will be:
http://bashfreebieguide.com/mystatus/test.gif
for example, try setting the font to sf_grunge or sf_espionage, then viewing the image. it's really small - definitely not the size i set it to.
also, anyone have any sample code of how to make text have more than one color? like let's say i pass the script text with some of it marked with special tags, like [red]text[/red] and parse that, so that i'd draw each string right after the last-printed string, and get it looking right. know what i mean?
i know i'd have to print each string seperately, keeping track of where i left off, and stuff. i know how to do it, logically, it just seems hard to code, and i just learned php...