Index: textimage.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/textimage/textimage.module,v retrieving revision 1.16 diff -u -F^f -r1.16 textimage.module --- textimage.module 10 May 2007 22:33:48 -0000 1.16 +++ textimage.module 5 Jun 2007 00:15:46 -0000 @@ -47,7 +47,7 @@ function textimage_help($section) { $output .= '
Text image is a module which allows you to create dynamic images using any font installed on the server.
'; $output .= 'Creating images from text has several important advantages and disadvantages. The greatest advantage is it allows you to use any font you wish for headlines and titles without the user needing to install the font. Another advantage is the wide browser support for images and available accessibility features (alt and title tags for instance), so screen readers should be able to handle your images without problem. You might also prefer text images over the sIFR approach because generated images are not disabled by many ad-blocking tools. However, an important limitation of Text Image module is wrapping of text, which it does not currently support and cannot compete with the dynamic abilities of a Flash based solution. If you need to create images with wrapped text, sIFR may be a better solution.
'; $output .= 'Text image is dependent on the GD2 library for text manipulations. You can check what version of GD you have on the Text Image configuration page. Before you can begin using Text Image you must upload at least one TrueType font to the server and tell Text Image where you uploaded it. All fonts must have the .tff extension to be seen by Text Image. If you do not have any TTF fonts to start using Text Image, you can download some free GNU fonts from the Free UCS Outline Fonts Project. Once the fonts are uploaded, enter the UNIX-style path the fonts on the configuration page. If you are using Text Image with the Captcha module, you\'ll also need to set a seperate directory on the Text Image Captcha Settings for fonts to be used at random.
'; + $output .= 'Text image is dependent on the GD2 library for text manipulations. You can check what version of GD you have on the Text Image configuration page. Before you can begin using Text Image you must upload at least one TrueType or OpenType font to the server and tell Text Image where you uploaded it. All fonts must have the .ttf or .otf extension to be seen by Text Image. If you do not have any fonts to start using Text Image, you can download some free GNU fonts from the Free UCS Outline Fonts Project. Once the fonts are uploaded, enter the UNIX-style path the fonts on the configuration page. If you are using Text Image with the Captcha module, you\'ll also need to set a seperate directory on the Text Image Captcha Settings for fonts to be used at random.
'; $output .= 'The basis of Text Image is made of configuration options called presets. A preset defines what font, size, color, etc. should be used in the generated image. You can create a new preset by clicking on the tab by the same name from the configuration page. Most options are pretty self explanatory, but background images can get pretty complicated if you begin to use other presets as backgrounds. Let\'s run through an example.'; $output .= '
If you specified a backgrounds directory on the main configuration page, a list of backgrounds is automatically popuplated into the Background Image select list. Let\'s say there\'s a image called "header.png" in the image list that looks like this:
'; @@ -1158,13 +1158,13 @@ function _textimage_recursive_delete($pa } /** -* Returns an array of files with TTF extensions in the specified directory. +* Returns an array of files with OTF/TTF extensions in the specified directory. */ function _textimage_font_list($fontdir) { $filelist = array(); if (is_dir($fontdir) && $handle = opendir($fontdir)) { while ($file = readdir($handle)) { - if (preg_match("/\.ttf$/i",$file) == 1) + if (preg_match("/\.[ot]tf$/i",$file) == 1) $filelist[] = $file; } closedir($handle);