You are here

function image_effects_text_help_inc in ImageCache Actions 8

Same name and namespace in other branches
  1. 7 image_effects_text/image_effects_text.inc \image_effects_text_help_inc()

Real implementation of hook_help() called by image_effects_text_help().

Experimental diagnostic page to assist locating valid fonts on the system. Only tuned for Ubuntu so far. I've been unable do find ubiquitous tools that provide useful font listings.'

1 call to image_effects_text_help_inc()
image_effects_text_help in image_effects_text/image_effects_text.module
Implements hook_help().

File

image_effects_text/image_effects_text.inc, line 13

Code

function image_effects_text_help_inc() {
  $output = "<p>\n    For text rendering to work on a server, we <em>must</em>\n    know the system path to the font <em>file</em>, not just the name.\n    Font library handling differs too much on different systems and\n    the available PHP toolkits are unable to return good diagnostics.\n    </p><p>\n    On Debian/Ubuntu, you may find your fonts in and under\n    <code>/usr/share/fonts/truetype/</code>\n    eg <code>'/usr/share/fonts/truetype/ttf-bitstream-vera/VeraMono.ttf'</code>\n    </p><p>\n    On OSX, they are probably in <code>/Library/Fonts/</code>\n    eg <code>'/Library/Fonts/Times New Roman Bold Italic.ttf'</code>\n    </p><p>\n    On Windows, they are probably in <code>C:\\WINDOWS\\Fonts\\</code>\n    eg <code>'C:\\WINDOWS\\Fonts\\comic.ttf'</code>\n    </p><p>\n    Of course, this will change if you deploy to a different server!\n    so the best approach is to place your own TTF font file inside your private\n    or public files directory and use that. Just give the filename with the\n    'private://' or 'public://' scheme prefix and it should be found.\n    </p>\n  ";
  $output .= t("<p>Files directory is !files</p>", array(
    '!files' => variable_get('file_public_path', conf_path() . '/files'),
  ));
  return $output;
}