Ben Godfrey

Button generation refinements.

The button generators are in a good state. They work! Their potential hasn’t been explored yet and won’t be until people start compositing Fireworks output with TTF text on the fly. However, a useful addition would be to size the TTF text first and create taller, multi-line buttons automatically. This can be done easily in PHP/GD with imageTTFBBox(), which returns the size of a text phrase. The tricky bit is working out where to insert the newlines. Maybe a best guess based on multiplication of the pixel width of a nice-sized character (perhaps n) followed by refinements. It should only need one refinement as the words must be split at the spaces.

Bookmark and Share

Comments

Add a new comment

Your avatar

Add a new comment

Cancel   Forgot password?
Cancel

Attention! Log in (if you've commented before) or use your OpenID.

You can use Markdown here.

Preview