]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - pgsrc/Help%2Ftext2pngPlugin
Wikicreole syntax for headers
[SourceForge/phpwiki.git] / pgsrc / Help%2Ftext2pngPlugin
1 Date: Sat, 24 Jan 2009 19:18:24 +0100
2 Mime-Version: 1.0 (Produced by PhpWiki 1.3.14-20080124)
3 X-Rcs-Id: $Id$
4 Content-Type: application/x-phpwiki;
5   pagename=Help%2Ftext2pngPlugin;
6   flags=PAGE_LOCKED;
7   markup=2;
8   charset=iso-8859-1
9 Content-Transfer-Encoding: binary
10
11 Convert text into a png image using GD without using [WikiPluginCached|Help:WikiPlugin].
12 The images are stored in a private <PHPWIKI_DIR>/images/<LANG> subdirectory instead, 
13 which are not timestamp checked at all. Delete the .png file(s) if you change anything.
14
15 This is a really simple and stupid plugin, which might need some work.
16
17 == Usage
18 <verbatim>
19   <?plugin text2png text="some text" ?>
20 </verbatim>
21
22 == Arguments
23
24 text:
25   some text to display
26 lang:
27   language subdirectory
28 _force:
29   set to 1 to recreate the image
30 fontsize:
31   18. with GD1 it's the pixelsize, with GD2 the pointsize
32 with_shadow:
33   1
34 fontcolor:
35   #000000
36 shadowcolor:
37   #AFAFAF
38 backcolor:
39   #ffffff
40
41
42 === Configurable Options
43
44 See the sourcecode. You'd probably need to adjust $ttfont and text2png_debug.
45
46 == Example
47
48 <verbatim>
49 <?plugin text2png text='Hello WikiWorld!' ?>
50 </verbatim>
51 would produce:
52 <?plugin text2png text='Hello WikiWorld!' ?>
53
54 == See Also
55 * [Help:TeX2PngPlugin]
56 * [Help:TexToPngPlugin]
57
58 ----
59 [PhpWikiDocumentation] [CategoryWikiPlugin]